aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimon Pistache <105607989+SimonPistache@users.noreply.github.com>2024-12-01 03:14:56 +0100
committerGitHub <noreply@github.com>2024-12-01 10:14:56 +0800
commit2abef971dc2d63606f7be4036c47209352a962d4 (patch)
tree3e047586987de9ceaad3954ec970adc6632b5ddf /templates
parent79d593a9be48d8281ce9418906a540e1f98c2f7c (diff)
downloadgitea-2abef971dc2d63606f7be4036c47209352a962d4.tar.gz
gitea-2abef971dc2d63606f7be4036c47209352a962d4.zip
fix(#32667): 🐛 Fixe a keystring misuse and refactor duplicates keystrings (#32668)
- Fixes a translation keystring misuse where the string 'open milestones' is used in place of 'closed milestones'. - De-duplicates the use of 'open milesones' and 'closed milestones' keystrings on the sidebar of an issue, reusing the ones on the issues filter and action bars. - Closes #32667 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/filter_actions.tmpl2
-rw-r--r--templates/repo/issue/sidebar/milestone_list.tmpl4
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/issue/filter_actions.tmpl b/templates/repo/issue/filter_actions.tmpl
index 4cdad7a748..8e2410393d 100644
--- a/templates/repo/issue/filter_actions.tmpl
+++ b/templates/repo/issue/filter_actions.tmpl
@@ -58,7 +58,7 @@
{{end}}
{{if .ClosedMilestones}}
<div class="divider"></div>
- <div class="header">{{ctx.Locale.Tr "repo.issues.filter_milestone_open"}}</div>
+ <div class="header">{{ctx.Locale.Tr "repo.issues.filter_milestone_closed"}}</div>
{{range .ClosedMilestones}}
<div class="item issue-action" data-element-id="{{.ID}}" data-url="{{$.RepoLink}}/issues/milestone">
{{.Name}}
diff --git a/templates/repo/issue/sidebar/milestone_list.tmpl b/templates/repo/issue/sidebar/milestone_list.tmpl
index 2a7b6f6009..0e926f7b03 100644
--- a/templates/repo/issue/sidebar/milestone_list.tmpl
+++ b/templates/repo/issue/sidebar/milestone_list.tmpl
@@ -22,7 +22,7 @@
<div class="item clear-selection">{{ctx.Locale.Tr "repo.issues.new.clear_milestone"}}</div>
<div class="scrolling menu">
{{if $data.OpenMilestones}}
- <div class="header">{{ctx.Locale.Tr "repo.issues.new.open_milestone"}}</div>
+ <div class="header">{{ctx.Locale.Tr "repo.issues.filter_milestone_open"}}</div>
{{range $data.OpenMilestones}}
<a class="item muted" data-value="{{.ID}}" href="{{$pageMeta.RepoLink}}/issues?milestone={{.ID}}">
{{svg "octicon-milestone" 18}} {{.Name}}
@@ -31,7 +31,7 @@
{{end}}
{{if and $data.OpenMilestones $data.ClosedMilestones}}<div class="divider"></div>{{end}}
{{if $data.ClosedMilestones}}
- <div class="header">{{ctx.Locale.Tr "repo.issues.new.closed_milestone"}}</div>
+ <div class="header">{{ctx.Locale.Tr "repo.issues.filter_milestone_closed"}}</div>
{{range $data.ClosedMilestones}}
<a class="item muted" data-value="{{.ID}}" href="{{$pageMeta.RepoLink}}/issues?milestone={{.ID}}">
{{svg "octicon-milestone" 18}} {{.Name}}