manage bookmarks, bugfixes
[smr.git] / gui / app / views / objects / user / index.html.erb
blob1d2ce36185560a6aba97b4e751fb32d766a18f37
1 <h1><%= @headline %></h1>
3 <h2>Users</h2>
4 <% if not @users %>
5     <p>No User accounts exist yet.</p>
6 <% else %>
9 <table id='users'>
10     <thead>
11     <tr>
12         <th colspan="3"><%= smr_paginate @page, @total_pages, objects_user_index_path %></th>
13     </tr>
14     <tr>
15         <th>Login</th>
16         <th>Full Name</th>
17         <th>Comment</th>
18     </tr>
19     </thead>
20     <tbody>
21     <% @users.each do |u| %>
22         <tr class="separaterows">
23             <td>
24               <% if u.id == current_user.id then %>
25                 <%= link_to '+', controller: 'objects/user', action: 'edit', id: u.id %>
26               <%else%>&nbsp;
27               <%end%>
28               <%= u.login %><br/>
29             </td>
30             <td><%= u.fullname %></td>
31             <td><span class="comment_text"><%= u.comment %></span></td>
32         </tr>
33     <% end %>
34     </tbody>
35 </table>
36 <% end %>