31 lines
976 B
Plaintext
31 lines
976 B
Plaintext
<h1>
|
|
<%= t 'global.statistics' %>: <%= t '.inactive_users' %>
|
|
</h1>
|
|
<div class="card">
|
|
<div class="card-body table-responsive">
|
|
<table class="table table-hover table-sm">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th><%= User.human_attribute_name :username %></th>
|
|
<th><%= t '.days_without_swaps' %></th>
|
|
<th><%= t '.last_movement' %></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @members.includes(:account)
|
|
.sort_by(&:days_without_swaps)
|
|
.reverse
|
|
.each do |mem| %>
|
|
<tr>
|
|
<td><%= mem.member_uid %></td>
|
|
<td><%= link_to mem.user.username, mem.user %></td>
|
|
<td><%= mem.days_without_swaps %></td>
|
|
<td><%= (mem.account.updated_at == mem.account.created_at) ? t(".no_movements") : l(mem.account.updated_at, format: :long) %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|