diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl index 5bae6fc6d5..c8e2fbe845 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 bce7ad8717..2a5cf84b35 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}}