Commit 0efbcaf3e4a680aa9bc3d0c7b61f0286294096e2

Authored by Antonio Terceiro
1 parent 434ebc9b

ActionItem871: removing "join" button for enterprises.

app/views/blocks/profile_info_actions/enterprise.rhtml
@@ -3,11 +3,6 @@ @@ -3,11 +3,6 @@
3 <%if !user.favorite_enterprises.include?(profile) %> 3 <%if !user.favorite_enterprises.include?(profile) %>
4 <li><%= link_to content_tag('span', _('Add as favorite')), { :profile => user.identifier, :controller => 'favorite_enterprises', :action => 'add', :id => profile.id }, :class => 'button with-text icon-add', :title => __('Add enterprise as favorite') %></li> 4 <li><%= link_to content_tag('span', _('Add as favorite')), { :profile => user.identifier, :controller => 'favorite_enterprises', :action => 'add', :id => profile.id }, :class => 'button with-text icon-add', :title => __('Add enterprise as favorite') %></li>
5 <% end %> 5 <% end %>
6 - <% if profile.members.include?(user) %>  
7 - <li><%= link_to content_tag('span', _('Leave')), { :profile => user.identifier, :controller => 'memberships', :action => 'leave', :id => profile.id }, :class => 'button with-text icon-delete', :title => __('Leave this enterprise') %></li>  
8 - <% else %>  
9 - <li><%= link_to content_tag('span', _('Join')), { :profile => user.identifier, :controller => 'memberships', :action => 'join', :id => profile.id }, :class => 'button with-text icon-add', :title => __('Join this enterprise') %></li>  
10 - <% end %>  
11 <% end %> 6 <% end %>
12 <% if profile.enable_contact_us %> 7 <% if profile.enable_contact_us %>
13 <li> <%= link_to content_tag('span', _('Contact us')), {:profile => profile.identifier, :controller => 'contact', :action => 'new'}, :class => 'button with-text icon-menu-mail' %> </li> 8 <li> <%= link_to content_tag('span', _('Contact us')), {:profile => profile.identifier, :controller => 'contact', :action => 'new'}, :class => 'button with-text icon-menu-mail' %> </li>