aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2009-06-25 16:51:53 +0000
committerfrancis <francis>2009-06-25 16:51:53 +0000
commitc8293589598dea89cb85b4a054d4e0bf13f0f333 (patch)
tree3aed2fd224c3b82688f3e52655d31bf93ff3e08b
parent15f0cbc3d633692595680c3c02e7840bc90bb559 (diff)
Forgot to add this.
-rw-r--r--app/views/admin_user/_user_table.rhtml22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/admin_user/_user_table.rhtml b/app/views/admin_user/_user_table.rhtml
new file mode 100644
index 000000000..d35c78594
--- /dev/null
+++ b/app/views/admin_user/_user_table.rhtml
@@ -0,0 +1,22 @@
+<table>
+ <tr>
+ <th>Id</th>
+ <% for column in ['Name', 'Email', 'Created at', 'Updated at', 'Email confirmed', 'Admin'] + (banned_column ? ['Ban text'] : []) %>
+ <th><%= column %></th>
+ <% end %>
+ </tr>
+
+<% for user in users %>
+ <tr class="<%= cycle('odd', 'even') %>">
+ <td><%= user.id.to_s %></td>
+ <td><%= user_both_links(user) %></td>
+ <td><a href="mailto:<%=h user.email %>"><%=h user.email%></a></td>
+ <% for column in ['created_at', 'updated_at', 'email_confirmed', 'admin_level'] + (banned_column ? ['ban_text'] : []) %>
+ <td><%=h user.send(column) %></td>
+ <% end %>
+ </tr>
+<% end %>
+</table>
+
+<%= will_paginate(users) %>
+