aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorBartlomiej Komendarczuk <bkomendarczuk@gmail.com>2024-07-16 10:08:54 +0200
committerGitHub <noreply@github.com>2024-07-16 10:08:54 +0200
commite8d4b7a8b198eca3b0bd117efb422d7d7cac93fe (patch)
treefd1f1785ee5eee3743eb53887d4fea4b88f1310a /templates/repo
parent0bb4c1cde24052b535de5770e1db3d3279afe32b (diff)
downloadgitea-e8d4b7a8b198eca3b0bd117efb422d7d7cac93fe.tar.gz
gitea-e8d4b7a8b198eca3b0bd117efb422d7d7cac93fe.zip
Added default sorting milestones by name (#27084)
#26996 Added default sorting for milestones by name. Additional, name for sorting closestduedate and furthestduedate was broken, so I fixed it. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/issue/milestone/filter_list.tmpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/repo/issue/milestone/filter_list.tmpl b/templates/repo/issue/milestone/filter_list.tmpl
index 45f9866a16..430d3814ee 100644
--- a/templates/repo/issue/milestone/filter_list.tmpl
+++ b/templates/repo/issue/milestone/filter_list.tmpl
@@ -11,5 +11,6 @@
<a class="{{if eq .SortType "mostcomplete"}}active {{end}}item" href="?sort=mostcomplete&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.most_complete"}}</a>
<a class="{{if eq .SortType "mostissues"}}active {{end}}item" href="?sort=mostissues&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.most_issues"}}</a>
<a class="{{if eq .SortType "leastissues"}}active {{end}}item" href="?sort=leastissues&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.least_issues"}}</a>
+ <a class="{{if eq .SortType "name"}}active {{end}}item" href="{{$.Link}}?sort=name&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.name"}}</a>
</div>
</div>