Commit 5a5a01d467f9d0780916647e24362b7171f9627d

Authored by Antonio Terceiro
1 parent 4ddf4cfc

Don't display "Join" link if already requested

(ActionItem1374)
app/views/blocks/profile_info_actions/community.rhtml
@@ -6,9 +6,11 @@ @@ -6,9 +6,11 @@
6 <%= lightbox_link_to content_tag('span', _('Leave')), profile.leave_url, :class => 'button with-text icon-delete', :title => _('Leave this community') %> 6 <%= lightbox_link_to content_tag('span', _('Leave')), profile.leave_url, :class => 'button with-text icon-delete', :title => _('Leave this community') %>
7 </li> 7 </li>
8 <% else %> 8 <% else %>
9 - <li> 9 + <% unless profile.already_request_membership?(user) %>
  10 + <li>
10 <%= lightbox_link_to content_tag('span', _('Join')), profile.join_url, :class => 'button with-text icon-add', :title => _('Join this community') %> 11 <%= lightbox_link_to content_tag('span', _('Join')), profile.join_url, :class => 'button with-text icon-add', :title => _('Join this community') %>
11 - </li> 12 + </li>
  13 + <% end %>
12 <% end %> 14 <% end %>
13 15
14 <% if profile.enable_contact? %> 16 <% if profile.enable_contact? %>