app/views/decidim/admin/users/index.html.erb in decidim-admin-0.24.3 vs app/views/decidim/admin/users/index.html.erb in decidim-admin-0.25.0.rc1
- old
+ new
@@ -5,21 +5,22 @@
<% if allowed_to? :create, :admin_user %>
<%= link_to t("actions.user.new", scope: "decidim.admin"), [:new, :user], class: "button tiny button--title" %>
<% end %>
</h2>
</div>
+ <%= admin_filter_selector %>
<div class="card-section">
<div class="table-scroll">
<table class="table-list">
<thead>
<tr>
- <th><%= t("models.user.fields.role", scope: "decidim.admin") %></th>
- <th><%= t("models.user.fields.name", scope: "decidim.admin") %></th>
- <th><%= t("models.user.fields.email", scope: "decidim.admin") %></th>
- <th><%= t("models.user.fields.invitation_sent_at", scope: "decidim.admin") %></th>
- <th><%= t("models.user.fields.invitation_accepted_at", scope: "decidim.admin") %></th>
- <th><%= t("models.user.fields.last_sign_in_at", scope: "decidim.admin") %></th>
- <th><%= t("models.user.fields.created_at", scope: "decidim.admin") %></th>
+ <th><%= sort_link(query, :role, t("models.user.fields.role", scope: "decidim.admin"), default_order: :desc) %></th>
+ <th><%= sort_link(query, :name, t("models.user.fields.name", scope: "decidim.admin"), default_order: :desc) %></th>
+ <th><%= sort_link(query, :email, t("models.user.fields.email", scope: "decidim.admin"), default_order: :desc) %></th>
+ <th><%= sort_link(query, :invitation_sent_at, t("models.user.fields.invitation_sent_at", scope: "decidim.admin"), default_order: :desc) %></th>
+ <th><%= sort_link(query, :invitation_accepted_at, t("models.user.fields.invitation_accepted_at", scope: "decidim.admin"), default_order: :desc) %></th>
+ <th><%= sort_link(query, :last_sign_in_at, t("models.user.fields.last_sign_in_at", scope: "decidim.admin"), default_order: :desc) %></th>
+ <th><%= sort_link(query, :created_at, t("models.user.fields.created_at", scope: "decidim.admin"), default_order: :desc) %></th>
<th></th>
</tr>
</thead>
<tbody>
<% @users.each do |user| %>