about summary refs log tree commit diff
path: root/app/views/admin/accounts/index.html.haml
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-03-08 15:39:13 +0100
committerGitHub <noreply@github.com>2020-03-08 15:39:13 +0100
commit4a4cd686c1d556e7b5246ddc309085243b4a051b (patch)
tree3dcea828b14d6735949e9ce141ef27fa86c1cba8 /app/views/admin/accounts/index.html.haml
parent2e18b1a2a2976f04f84e92d187b0620223a64fa6 (diff)
Add sorting by username, creation and last activity in moderation view (#13076)
* Add ability to order accounts in moderation view

* Display last status date in “Most recent activity” for remote users
Diffstat (limited to 'app/views/admin/accounts/index.html.haml')
-rw-r--r--app/views/admin/accounts/index.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/admin/accounts/index.html.haml b/app/views/admin/accounts/index.html.haml
index 3a85324c9..7592161c9 100644
--- a/app/views/admin/accounts/index.html.haml
+++ b/app/views/admin/accounts/index.html.haml
@@ -19,6 +19,12 @@
     %ul
       %li= filter_link_to t('admin.accounts.moderation.all'), staff: nil
       %li= filter_link_to t('admin.accounts.roles.staff'), staff: '1'
+  .filter-subset
+    %strong= t 'generic.order_by'
+    %ul
+      %li= filter_link_to t('relationships.most_recent'), order: nil
+      %li= filter_link_to t('admin.accounts.username'), order: 'alphabetic'
+      %li= filter_link_to t('relationships.last_active'), order: 'active'
 
 = form_tag admin_accounts_url, method: 'GET', class: 'simple_form' do
   .fields-group