<% if owner.kind_of?(Profile) %> <%= link_to s_('communities|View all'), {:profile => owner.identifier, :controller => 'profile', :action => 'communities'}, :class => 'view-all' %> <% elsif owner.kind_of?(Environment) %> <%= link_to s_('communities|View all'), {:controller => 'search', :action => 'communities'}, :class => 'view-all' %> <% end %> <% if user && user == profile && suggestions && !suggestions.empty? %>

<%= _('Some suggestions for you') %>

<%= render :partial => 'shared/profile_suggestions_list', :locals => { :suggestions => suggestions, :collection => :communities_suggestions, :per_page => 3 } %>
<%= link_to _('See all suggestions'), profile.communities_suggestions_url %>
<% end %>