From d5d9c56ac26e2b88db40ce516151c63495bc3e77 Mon Sep 17 00:00:00 2001 From: Bartlomiej Komendarczuk Date: Mon, 3 Apr 2023 00:40:43 +0200 Subject: [PATCH] Added close/open button to details page of milestone (#23877) Depending on the current state, a close or open button appears. Close https://github.com/go-gitea/gitea/issues/19083 --- ![image](https://user-images.githubusercontent.com/11333925/229367898-844ff790-c725-440a-9cf7-242c7745d643.png) ![image](https://user-images.githubusercontent.com/11333925/229367873-6a77fceb-1627-41d4-9d76-1f10ba2b278b.png) --- templates/repo/issue/milestone_issues.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl index cb20fb0c5..2ca2fa2bc 100644 --- a/templates/repo/issue/milestone_issues.tmpl +++ b/templates/repo/issue/milestone_issues.tmpl @@ -9,6 +9,13 @@ {{if not .Repository.IsArchived}}
{{if or .CanWriteIssues .CanWritePulls}} + {{if .Milestone.IsClosed}} + {{$.locale.Tr "repo.milestones.open"}} + + {{else}} + {{$.locale.Tr "repo.milestones.close"}} + + {{end}} {{.locale.Tr "repo.milestones.edit"}} {{end}} {{.locale.Tr "repo.issues.new"}}