* pagination theme for new admin view * align pagination widget correctly in desktop view * remove bottom pagination * re-add pagination to the bottom * use block styling for the links
33 lines
1 KiB
Text
33 lines
1 KiB
Text
<div class="crayons-card p-3 s:p-4 m:p-7">
|
|
<header class="flex flex-col l:flex-row justify-content-between l:items-center ">
|
|
<h1 class="crayons-title ml-3 l:ml-0">Members</h1>
|
|
<%= render "admin/users/index/tabs" %>
|
|
</header>
|
|
|
|
<div class="flex justify-between">
|
|
<%= render "admin/users/index/controls" %>
|
|
<%= paginate @users, theme: "admin", scope: @users, label: "Paginate users" %>
|
|
</div>
|
|
|
|
<table class="crayons-table" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Member</th>
|
|
<th scope="col">Status</th>
|
|
<th scope="col">Last activity & Joined on</th>
|
|
<th scope="col">Organizations</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="crayons-card">
|
|
<% @users.each do |user| %>
|
|
<tr>
|
|
<td><%= link_to user.name, admin_user_path(user) %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="flex justify-end">
|
|
<%= paginate @users, theme: "admin", scope: @users, label: "Paginate users" %>
|
|
</div>
|
|
</div>
|