Project

General

Profile

Download (1.02 KB) Statistics
| Branch: | Tag: | Revision:
01352c23 Bryan Kearney
<% title _("User Groups") %>
9c0e127b Paul Kelly
bfbf7ed8 Lukas Zapletal
<% title_actions display_link_if_authorized(_("New User group"), hash_for_new_usergroup_path) %>
cdf02336 Ohad Levy
22a48ce1 Amos Benari
<table class="table table-bordered table-striped table-two-pane">
9c0e127b Paul Kelly
<tr>
74e0b0e3 Lukas Zapletal
<th><%= s_("Usergroup|Name") %></th>
01352c23 Bryan Kearney
<th><%= _("Users") %></th>
<th><%= _("User Groups") %></th>
9c0e127b Paul Kelly
<th></th>
</tr>
<% for usergroup in @usergroups %>
29972d83 Amos Benari
<tr>
acfbc458 Marek Hulan
<td><%= link_to_if_authorized h(usergroup.name), hash_for_edit_usergroup_path(:id => usergroup.id).merge(:auth_object => usergroup, :authorizer => authorizer) %></td>
cdf02336 Ohad Levy
<td><%= h usergroup.users.map(&:login).to_sentence %></td>
<td><%= h usergroup.usergroups.map(&:name).to_sentence %></td>
82e47ae0 Amos Benari
<td>
acfbc458 Marek Hulan
<%= display_delete_if_authorized hash_for_usergroup_path(:id => usergroup).merge(:auth_object => usergroup, :authorizer => authorizer),
:confirm => (_("Delete %s?") % usergroup.name) %>
9c0e127b Paul Kelly
</td>
</tr>
<% end %>
</table>
5410421d Ohad Levy
<%= page_entries_info @usergroups %>
<%= will_paginate @usergroups %>