From 5a5a01d467f9d0780916647e24362b7171f9627d Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 1 Feb 2010 12:04:03 -0300 Subject: [PATCH] Don't display "Join" link if already requested --- app/views/blocks/profile_info_actions/community.rhtml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/blocks/profile_info_actions/community.rhtml b/app/views/blocks/profile_info_actions/community.rhtml index 6f1951a..c7c8db7 100644 --- a/app/views/blocks/profile_info_actions/community.rhtml +++ b/app/views/blocks/profile_info_actions/community.rhtml @@ -6,9 +6,11 @@ <%= lightbox_link_to content_tag('span', _('Leave')), profile.leave_url, :class => 'button with-text icon-delete', :title => _('Leave this community') %> <% else %> -
  • + <% unless profile.already_request_membership?(user) %> +
  • <%= lightbox_link_to content_tag('span', _('Join')), profile.join_url, :class => 'button with-text icon-add', :title => _('Join this community') %> -
  • + + <% end %> <% end %> <% if profile.enable_contact? %> -- libgit2 0.21.2