cirandas.net

ref: master

app/views/blocks/footers/communities.html.erb


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

  <% if user && user == profile && block.suggestions && !block.suggestions.empty? %>
    

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

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