Note the CSS could probably be improved to avoid duplication with other button style definitions. However, that's fine because we're going to change the style of the links soon. For the same reason, I haven't bothered to style every single link the way it was until now.
32 lines
954 B
Plaintext
32 lines
954 B
Plaintext
<h2><%= t("admin.moderators.search.title") %></h2>
|
|
|
|
<%= render "admin/shared/user_search", url: search_admin_moderators_path %>
|
|
|
|
<div id="moderators">
|
|
<% if @users.any? %>
|
|
<h3 class="margin"><%= page_entries_info @users %></h3>
|
|
|
|
<table id="moderators">
|
|
<thead>
|
|
<th scope="col"><%= t("admin.moderators.index.name") %></th>
|
|
<th scope="col" class="small-6"><%= t("admin.moderators.index.email") %></th>
|
|
<th scope="col"><%= t("admin.shared.actions") %></th>
|
|
</thead>
|
|
<tbody>
|
|
<% @users.each do |user| %>
|
|
<tr>
|
|
<td><%= user.name %></td>
|
|
<td><%= user.email %></td>
|
|
<td>
|
|
<%= render Admin::Roles::TableActionsComponent.new(user.moderator || user.build_moderator) %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
<% else %>
|
|
<div class="callout alert margin">
|
|
<%= t("admin.shared.no_search_results") %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|