To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / groups / index.html.erb @ 1298:4f746d8966dd
History | View | Annotate | Download (668 Bytes)
| 1 | 0:513646585e45 | Chris | <div class="contextual"> |
|---|---|---|---|
| 2 | <%= link_to l(:label_group_new), new_group_path, :class => 'icon icon-add' %>
|
||
| 3 | </div>
|
||
| 4 | |||
| 5 | <h2><%= l(:label_group_plural) %></h2> |
||
| 6 | |||
| 7 | <% if @groups.any? %>
|
||
| 8 | <table class="list groups"> |
||
| 9 | <thead><tr> |
||
| 10 | <th><%=l(:label_group)%></th> |
||
| 11 | <th><%=l(:label_user_plural)%></th> |
||
| 12 | <th></th> |
||
| 13 | </tr></thead> |
||
| 14 | <tbody>
|
||
| 15 | <% @groups.each do |group| %>
|
||
| 16 | <tr class="<%= cycle 'odd', 'even' %>"> |
||
| 17 | 909:cbb26bc654de | Chris | <td><%= link_to h(group), edit_group_path(group) %></td> |
| 18 | 0:513646585e45 | Chris | <td align="center"><%= group.users.size %></td> |
| 19 | 1115:433d4f72a19b | Chris | <td class="buttons"><%= delete_link group %></td> |
| 20 | 0:513646585e45 | Chris | </tr>
|
| 21 | <% end %>
|
||
| 22 | 1295:622f24f53b42 | Chris | </tbody>
|
| 23 | 0:513646585e45 | Chris | </table>
|
| 24 | <% else %>
|
||
| 25 | <p class="nodata"><%= l(:label_no_data) %></p> |
||
| 26 | <% end %> |