_users_list.rhtml
1.11 KB
<% title = _('All Users') %>
<h3><%= title %></h3>
<table>
<tr>
<th><%= _('Member') %></th>
<th><%= _('Actions') %></th>
</tr>
<% @collection.each do |p| %>
<tr title="<%= p.name %>">
<td><%= link_to_profile p.short_name, p.identifier, :title => p.name %> </td>
<td>
<div class="members-buttons-cell">
<% if p.is_admin? %>
<%= button_without_text :'reset-admin-role', _('Reset admin role'), :action => 'reset_admin_role', :id => p, :q => @q %>
<% else %>
<%= button_without_text :'set-admin-role', _('Set admin role'), :action => 'set_admin_role', :id => p, :q => @q %>
<% end %>
<% if !p.user.activated? %>
<%= button_without_text :'activate-user', _('Activate user'), :action => 'activate', :id => p, :q => @q %>
<% else %>
<%= button_without_text :'deactivate-user', _('Deactivate user'), :action => 'deactivate', :id => p, :q => @q %>
<% end %>
</div>
</td>
</tr>
<% end %>
</table>
<%= pagination_links @collection, {:param_name => 'npage', :page_links => true} %>