Revision 82e47ae0
Added by Amos Benari about 12 years ago
- ID 82e47ae0f86994702c3a084cc6150250a81034ee
app/views/usergroups/index.html.erb | ||
---|---|---|
|
||
<% title_actions display_link_if_authorized("New Usergroup", hash_for_new_usergroup_path) %>
|
||
|
||
<table class="list">
|
||
<table class="table table-bordered table-striped">
|
||
<tr>
|
||
<th>Name</th>
|
||
<th>Users</th>
|
||
... | ... | |
<td><%= link_to_if_authorized h(usergroup.name), hash_for_edit_usergroup_path(:id => usergroup.id) %></td>
|
||
<td><%= h usergroup.users.map(&:login).to_sentence %></td>
|
||
<td><%= h usergroup.usergroups.map(&:name).to_sentence %></td>
|
||
<td class="ra">
|
||
<%= display_link_if_authorized "Delete", hash_for_usergroup_path(:id => usergroup, :auth_action => :destroy), :confirm => "Delete #{usergroup.name}?", :method => :delete %>
|
||
<td>
|
||
<%= display_delete_if_authorized hash_for_usergroup_path(:id => usergroup), :confirm => "Delete #{usergroup.name}?" %>
|
||
</td>
|
||
</tr>
|
||
<% end %>
|
Also available in: Unified diff
updates UI to bootstrap v2