moving intranet buttons to environment.rb for easier configuration
[boxroom-stian.git] / app / views / user / list.rhtml
blob08b9b75db63da92c1c3e7a1bb24e893de469bf6c
1 <p class="title">Users</p>
3 <% if flash[:user_error] %>
4 <div id="error"><%= flash[:user_error] %></div>
5 <% end %>
7 <% if flash[:user_confirmation] %>
8 <div id="confirmation"><%= flash[:user_confirmation] %></div>
9 <% end %>
11 <table>
12     <tr>
13         <th></th>
14            <th width="180">Name</th>
15         <th width="356">E-mail address</th>
16         <th></th>
17         <th></th>
18       </tr>
19   
20 <% @users.each do |user| %>
21     <tr class="<%= cycle('even', 'odd') %>">
22         <td><%= image_tag('user.png') %></td>
23         <td><%= h(user.name) %></td>
24         <td><%= h(user.email) %></td>
25         <td><%= link_to image_tag('edit.png'), { :action => 'edit', :id => user }, { :title => "Edit this user's settings" } %></td>
26     <% if user.is_the_administrator? %>
27         <td></td>
28     <% else %>
29         <td><%= link_to image_tag('delete.png'), { :action => 'destroy', :id => user }, { :title => 'Delete this user', :confirm => 'Are you sure?' } %></td>
30     <% end %>
31     </tr>
32 <% end %>
33 </table>