diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl index 5bae6fc6d..c8e2fbe84 100644 --- a/templates/repo/issue/milestone_issues.tmpl +++ b/templates/repo/issue/milestone_issues.tmpl @@ -3,16 +3,16 @@ {{template "repo/header" .}}
{{template "base/alert" .}} -
+

{{.Milestone.Name}}

{{if not .Repository.IsArchived}} -
+
{{if or .CanWriteIssues .CanWritePulls}} {{if .Milestone.IsClosed}} - {{ctx.Locale.Tr "repo.milestones.open"}} + {{ctx.Locale.Tr "repo.milestones.open"}} {{else}} - {{ctx.Locale.Tr "repo.milestones.close"}} + {{ctx.Locale.Tr "repo.milestones.close"}} {{end}} {{ctx.Locale.Tr "repo.milestones.edit"}} diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl index bce7ad871..2a5cf84b3 100644 --- a/templates/repo/issue/milestones.tmpl +++ b/templates/repo/issue/milestones.tmpl @@ -4,11 +4,13 @@
{{template "base/alert" .}} -
+
{{template "repo/issue/navbar" .}} {{template "repo/issue/search" .}} {{if and (or .CanWriteIssues .CanWritePulls) (not .Repository.IsArchived)}} - {{ctx.Locale.Tr "repo.milestones.new"}} + {{end}}