1 <p class="title">Users</p>
3 <% if flash[:user_error] %>
4 <div id="error"><%= flash[:user_error] %></div>
7 <% if flash[:user_confirmation] %>
8 <div id="confirmation"><%= flash[:user_confirmation] %></div>
14 <th width="180">Name</th>
15 <th width="356">E-mail address</th>
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? %>
29 <td><%= link_to image_tag('delete.png'), { :action => 'destroy', :id => user }, { :title => 'Delete this user', :confirm => 'Are you sure?' } %></td>