aboutsummaryrefslogtreecommitdiffstats
path: root/templates/admin/emails
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-06-25 00:23:05 +0200
committerGitHub <noreply@github.com>2020-06-24 23:23:05 +0100
commitc86478ec47366dfb7081cc2eb2790a0af1880eca (patch)
tree6301cdfabec3f619cd61e673fa9bef3802a16b82 /templates/admin/emails
parentae20de7771d81d76ff62227e464a699d55c62084 (diff)
downloadgitea-c86478ec47366dfb7081cc2eb2790a0af1880eca.tar.gz
gitea-c86478ec47366dfb7081cc2eb2790a0af1880eca.zip
[UI] Sortable Tables Header By Click (#7980)
* [UI] Sortable Tables Header By Click * get rid of padding above header * restart CI * fix lint * convert getArrow JS to SortArrow go func * addopt SortArrow funct * suggestions from @silverwind - tablesort.js Co-authored-by: silverwind <me@silverwind.io> * Update web_src/js/features/tablesort.js Co-authored-by: silverwind <me@silverwind.io> * Update web_src/js/features/tablesort.js Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'templates/admin/emails')
-rw-r--r--templates/admin/emails/list.tmpl10
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/admin/emails/list.tmpl b/templates/admin/emails/list.tmpl
index 64b7603e2e..39a200942d 100644
--- a/templates/admin/emails/list.tmpl
+++ b/templates/admin/emails/list.tmpl
@@ -33,9 +33,15 @@
<table class="ui very basic striped table">
<thead>
<tr>
- <th>{{.i18n.Tr "admin.users.name"}}</th>
+ <th data-sortt-asc="username" data-sortt-desc="reverseusername">
+ {{.i18n.Tr "admin.users.name"}}
+ {{SortArrow "username" "reverseusername" $.SortType false}}
+ </th>
<th>{{.i18n.Tr "admin.users.full_name"}}</th>
- <th>{{.i18n.Tr "email"}}</th>
+ <th data-sortt-asc="email" data-sortt-desc="reverseemail" data-sortt-default="true">
+ {{.i18n.Tr "email"}}
+ {{SortArrow "email" "reverseemail" $.SortType true}}
+ </th>
<th>{{.i18n.Tr "admin.emails.primary"}}</th>
<th>{{.i18n.Tr "admin.emails.activated"}}</th>
</tr>