% 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? %>