From 6af2679fc175651ca686205dff881be1b8a4a8a3 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Tue, 12 Oct 2021 09:34:36 +0800 Subject: [PATCH 1/2] fix issue #327 --- templates/repo/issue/labels.tmpl | 26 +++++++++++++------- templates/repo/issue/list.tmpl | 9 +++++-- templates/repo/issue/milestone_issues.tmpl | 10 ++++++-- templates/repo/issue/milestone_new.tmpl | 28 +++++++++++++++++----- templates/repo/issue/milestones.tmpl | 27 ++++++++++++++------- templates/repo/issue/navbar.tmpl | 2 +- templates/repo/issue/new.tmpl | 18 +++++++++++--- templates/repo/issue/view.tmpl | 9 +++++-- 8 files changed, 97 insertions(+), 32 deletions(-) diff --git a/templates/repo/issue/labels.tmpl b/templates/repo/issue/labels.tmpl index d3df3b594..36683ca9b 100644 --- a/templates/repo/issue/labels.tmpl +++ b/templates/repo/issue/labels.tmpl @@ -2,14 +2,24 @@
{{template "repo/header" .}}
- +
+
+ +
+
+ {{template "repo/issue/navbar" .}} + {{if and (or .CanWriteIssues .CanWritePulls) (not .Repository.IsArchived)}} +
+
{{.i18n.Tr "repo.issues.new_label"}}
+
+ {{end}} +
+ +
{{if and (or .CanWriteIssues .CanWritePulls) (not .Repository.IsArchived)}} {{template "repo/issue/labels/label_new" .}} diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index f64de74e8..a99205eea 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -3,14 +3,19 @@ {{template "repo/header" .}}
-
- {{template "repo/issue/navbar" .}} +
{{template "repo/issue/search" .}}
{{if not .Repository.IsArchived}}
+ {{template "repo/issue/navbar" .}} {{if .PageIsIssueList}} {{.i18n.Tr "repo.issues.new"}} {{else}} diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl index a35dacbce..b8f68e025 100755 --- a/templates/repo/issue/milestone_issues.tmpl +++ b/templates/repo/issue/milestone_issues.tmpl @@ -3,8 +3,14 @@ {{template "repo/header" .}}
-
-

{{.Milestone.Name}}

+
+
diff --git a/templates/repo/issue/milestone_new.tmpl b/templates/repo/issue/milestone_new.tmpl index ea704c056..6f17f1b71 100644 --- a/templates/repo/issue/milestone_new.tmpl +++ b/templates/repo/issue/milestone_new.tmpl @@ -2,13 +2,29 @@
{{template "repo/header" .}}
-