initial import boxroom 0.6.2
[boxroom-stian.git] / app / views / group / list.rhtml
blob329b47d0e8f6e7441e31bd2ec70f4d1ef8518aa0
1 <p class="title">Groups</p>\r
2 \r
3 <% if flash[:group_error] %>\r
4 <div id="error"><%= flash[:group_error] %></div>\r
5 <% end %>\r
6 \r
7 <table>\r
8     <tr>\r
9         <th></th>\r
10         <th width="542">Name</th>\r
11         <th></th>\r
12         <th></th>\r
13     </tr>\r
14 <% @groups.each do |group| %>\r
15     <tr class="<%= cycle('even', 'odd') %>">\r
16         <td><%= image_tag('group.png') %></td>\r
17         <td><%= h(group.name) %></td>\r
18     <% unless group.is_the_administrators_group? %>\r
19         <td><%= link_to image_tag('edit.png'), { :action => 'rename', :id => group }, { :title => 'Rename this group' } %></td>\r
20         <td><%= link_to image_tag('delete.png'), { :action => 'destroy', :id => group }, { :title => 'Delete this group', :confirm => 'Are you sure?' } %></td>\r
21     <% else %>\r
22         <td></td>\r
23         <td></td>\r
24     <% end %>\r
25     </tr>\r
26 <% end %>\r
27 </table>