diff options
author | Jorrit Klein Bramel <drsect0r@users.noreply.github.com> | 2017-05-02 10:34:28 +0200 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-05-02 16:34:28 +0800 |
commit | 87efc8c6d4dbcbfb1e814091b16ae84c8564678c (patch) | |
tree | 7b475eb2297c97bb95229adde132c1fd24f6da53 /templates | |
parent | 3792867955f590661469cc23c16e14e9d6fabb85 (diff) | |
download | gitea-87efc8c6d4dbcbfb1e814091b16ae84c8564678c.tar.gz gitea-87efc8c6d4dbcbfb1e814091b16ae84c8564678c.zip |
Sort on repo size in admin panel (#1654)
* fix #1653 sort on repo size
* fix minor mistake in en-us locale
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/base/search.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/admin/base/search.tmpl b/templates/admin/base/search.tmpl index 9e450ee367..5491d6b94a 100644 --- a/templates/admin/base/search.tmpl +++ b/templates/admin/base/search.tmpl @@ -12,6 +12,8 @@ <a class="{{if eq .SortType "reversealphabetically"}}active{{end}} item" href="{{$.Link}}?sort=reversealphabetically&q={{$.Keyword}}">{{.i18n.Tr "repo.issues.label.filter_sort.reverse_alphabetically"}}</a> <a class="{{if eq .SortType "recentupdate"}}active{{end}} item" href="{{$.Link}}?sort=recentupdate&q={{$.Keyword}}">{{.i18n.Tr "repo.issues.filter_sort.recentupdate"}}</a> <a class="{{if eq .SortType "leastupdate"}}active{{end}} item" href="{{$.Link}}?sort=leastupdate&q={{$.Keyword}}">{{.i18n.Tr "repo.issues.filter_sort.leastupdate"}}</a> + <a class="{{if eq .SortType "size"}}active{{end}} item" href="{{$.Link}}?sort=size&q={{$.Keyword}}">{{.i18n.Tr "repo.issues.label.filter_sort.by_size"}}</a> + <a class="{{if eq .SortType "reversesize"}}active{{end}} item" href="{{$.Link}}?sort=reversesize&q={{$.Keyword}}">{{.i18n.Tr "repo.issues.label.filter_sort.reverse_by_size"}}</a> </div> </div> </div> |