summaryrefslogtreecommitdiff
path: root/app/views/users/index.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/users/index.html.erb')
-rw-r--r--app/views/users/index.html.erb14
1 files changed, 12 insertions, 2 deletions
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
index 8526d844..03085c1d 100644
--- a/app/views/users/index.html.erb
+++ b/app/views/users/index.html.erb
@@ -2,9 +2,19 @@
2 2
3<table id="user_list"> 3<table id="user_list">
4 <tr> 4 <tr>
5 <td>login</td> 5 <th>login</th>
6 </tr> 6 </tr>
7 <%= user_list_by_admin_status %> 7 <% @users.each do |user| %>
8 <tr>
9 <td><%= user.login %></td>
10 <td><%= link_to "show", user_path(user) %></td>
11 <td>
12 <% if current_user == user || current_user.admin? %>
13 <%= link_to "Edit", edit_user_path(user) %>
14 <% end %>
15 </td>
16 </tr>
17 <% end %>
8</table> 18</table>
9 19
10 20