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.erb19
1 files changed, 5 insertions, 14 deletions
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
index 03085c1d..8d931be7 100644
--- a/app/views/users/index.html.erb
+++ b/app/views/users/index.html.erb
@@ -1,23 +1,14 @@
1<h1>Users</h1> 1<table class="user_list">
2
3<table id="user_list">
4 <tr> 2 <tr>
5 <th>login</th> 3 <td><h1>Admins</h1></td>
6 </tr> 4 </tr>
7 <% @users.each do |user| %> 5 <%= render :partial => "user", :collection => @users[:admin], :as => :user %>
8 <tr> 6 <tr>
9 <td><%= user.login %></td> 7 <td><h1>Users</h1></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> 8 </tr>
17 <% end %> 9 <%= render :partial => "user", :collection => @users[:user], :as => :user %>
18</table> 10</table>
19 11
20
21<% content_for :subnavigation do %> 12<% content_for :subnavigation do %>
22 <%= link_to "create", new_user_path %> 13 <%= link_to "create", new_user_path %>
23<% end %> \ No newline at end of file 14<% end %> \ No newline at end of file