2009-09-12 08:36:46 +00:00
|
|
|
<div class="contextual">
|
|
|
|
<%= link_to l(:label_group_new), new_group_path, :class => 'icon icon-add' %>
|
|
|
|
</div>
|
|
|
|
|
2013-07-28 11:23:22 +00:00
|
|
|
<%= title l(:label_group_plural) %>
|
2009-09-12 08:36:46 +00:00
|
|
|
|
|
|
|
<% if @groups.any? %>
|
|
|
|
<table class="list groups">
|
|
|
|
<thead><tr>
|
|
|
|
<th><%=l(:label_group)%></th>
|
|
|
|
<th><%=l(:label_user_plural)%></th>
|
|
|
|
<th></th>
|
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
|
|
|
<% @groups.each do |group| %>
|
|
|
|
<tr class="<%= cycle 'odd', 'even' %>">
|
2011-11-26 17:56:52 +00:00
|
|
|
<td><%= link_to h(group), edit_group_path(group) %></td>
|
2009-09-12 08:36:46 +00:00
|
|
|
<td align="center"><%= group.users.size %></td>
|
2012-07-07 14:36:49 +00:00
|
|
|
<td class="buttons"><%= delete_link group %></td>
|
2009-09-12 08:36:46 +00:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
2013-03-12 23:17:16 +00:00
|
|
|
</tbody>
|
2009-09-12 08:36:46 +00:00
|
|
|
</table>
|
|
|
|
<% else %>
|
|
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
|
|
|
<% end %>
|