ref: master
app/views/profile/members.html.erb
<%= javascript_include_tag "members_page.js" %><%= _("Members (%d)") % @profile_members.total_entries %>
<%= profile.name %>
<%# cache_timeout(profile.members_cache_key(params), 4.hours) do %><% tabs = [] %> <% div_members = content_tag :div, :class => "profile-members" do render :partial => 'profile_members_list', :locals => { :users => @profile_members, :role => "members" } end %> <% tabs << {:title => _("%d Members") % @profile_members.total_entries, :id => "members-tab", :content => div_members } %> <% div_admins = content_tag :div, :class => "profile-admins" do render :partial => 'profile_members_list', :locals => { :users => @profile_admins, :role => "admins" } end %> <% tabs << {:title => _("%d Administrators") % @profile_admins.total_entries, :id => "admins-tab", :content => div_admins } %> <%= render_tabs(tabs) %><%# end %> <%= button_bar do %> <%= button :back, _('Go back'), { :controller => 'profile' } %> <% if profile.community? and user %> <% if user.has_permission?(:invite_members, profile) %> <%= button :person, _('Invite people to join'), :controller => 'invite', :action => 'invite_friends' %> <% end %> <% if user.has_permission?(:send_mail_to_members, profile) %> <%= button :send, _('Send e-mail to members'), :controller => 'profile', :action => 'send_mail' %> <% end %> <% end %> <% end %> <%= hidden_field_tag "profile_url", @profile_members_url %>