diff options
author | John Smith <me@madao.dev> | 2025-02-06 03:09:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-05 19:09:43 +0000 |
commit | a025fa70ab3e2aa0f6752e15e3b76b7bd5dded2a (patch) | |
tree | 29132c4ca739b664c11fc6d7162b02c7db7c656d /templates/projects | |
parent | fa0c8ae50f6f69fcea64d4b22d5f257649f78bea (diff) | |
download | gitea-a025fa70ab3e2aa0f6752e15e3b76b7bd5dded2a.tar.gz gitea-a025fa70ab3e2aa0f6752e15e3b76b7bd5dded2a.zip |
Add alphabetical project sorting (#33504)
Fixes #33500
Diffstat (limited to 'templates/projects')
-rw-r--r-- | templates/projects/list.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/projects/list.tmpl b/templates/projects/list.tmpl index f5a48f7241..7c75585bf7 100644 --- a/templates/projects/list.tmpl +++ b/templates/projects/list.tmpl @@ -34,6 +34,8 @@ {{svg "octicon-triangle-down" 14 "dropdown icon"}} <div class="menu"> <a class="{{if eq .SortType "oldest"}}active {{end}}item" href="?q={{$.Keyword}}&sort=oldest&state={{$.State}}">{{ctx.Locale.Tr "repo.issues.filter_sort.oldest"}}</a> + <a class="{{if eq .SortType "alphabetically"}}active {{end}}item" href="?q={{$.Keyword}}&sort=alphabetically&state={{$.State}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.alphabetically"}}</a> + <a class="{{if eq .SortType "reversealphabetically"}}active {{end}}item" href="?q={{$.Keyword}}&sort=reversealphabetically&state={{$.State}}">{{ctx.Locale.Tr "repo.issues.label.filter_sort.reverse_alphabetically"}}</a> <a class="{{if eq .SortType "recentupdate"}}active {{end}}item" href="?q={{$.Keyword}}&sort=recentupdate&state={{$.State}}">{{ctx.Locale.Tr "repo.issues.filter_sort.recentupdate"}}</a> <a class="{{if eq .SortType "leastupdate"}}active {{end}}item" href="?q={{$.Keyword}}&sort=leastupdate&state={{$.State}}">{{ctx.Locale.Tr "repo.issues.filter_sort.leastupdate"}}</a> </div> |