ref: master
app/views/memberships/index.html.erb
<%= _('Manage my groups') %>
<%= button_bar do %> <%= button(:add, _('Create a new community'), :controller => 'memberships', :action => 'new_community') %> <%= button :add, _('Register a new enterprise'), :controller => 'enterprise_registration' if environment.enabled?('enterprise_registration') %> <%= button :back, _('Go back'), :controller => 'profile_editor' %> <% end %> <% type_collection = [[0, _('All')]] %> <% type_collection += @roles.sort_by {|role| role.id}.map{|r| ["#{r.id}", r.name]} %> <%= javascript_include_tag "memberships_filter.js" %><%= labelled_select(_('Filter')+': ', :filter_type, :first, :last, @filter, type_collection, :id => 'memberships_filter')%>
<%= link_to _('See some suggestions of communities...'), :action => 'suggest' %>
<% if @memberships.empty? %><%= _('No groups to list') %>
<% else %> <%= render :partial => 'shared/list_groups', :locals => {:groups => @memberships} %> <% end %>