-
Notifications
You must be signed in to change notification settings - Fork 530
/
Copy path_user_table.html.erb
33 lines (33 loc) · 1.11 KB
/
_user_table.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<h3 class="heading"><%= ts("#{pluralize(@users.total_entries, 'user')} found") %></h3>
<% if @users.size > 0 %>
<div class="wrapper">
<table id="admin_users_table" summary="<%= ts("Users matching your search criteria, as well as options for updating the user's roles and viewing more information.") %>">
<caption><%= ts("List of Users") %></caption>
<colgroup>
<col class="name"/>
<col span="6"/>
</colgroup>
<thead>
<tr>
<th scope="col"><%= ts("Username") %></th>
<th scope="col"><%= ts("Email") %></th>
<% for role in @roles %>
<th scope="col"><%= role.name.try(:titleize) %></th>
<% end %>
<th scope="col"><%= ts("Fannish Next of Kin") %></th>
<th scope="col"><%= ts("Update") %></th>
<th scope="col"><%= ts("Details") %></th>
</tr>
</thead>
<tbody>
<% @users.each do |user| %>
<tr id="user_<%= user.id %>">
<%= render "user_form", user: user %>
</tr>
<% end %>
</tbody>
</table>
</div>
<%= will_paginate @users %>
<% end %>
<!--/content-->