blob: d35c78594387241651a9ef9c92f687f788735203 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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) %>
|