From 3d5c1c6cef82d366b762a41261b1a14793b37edb Mon Sep 17 00:00:00 2001 From: Otto Richter Date: Wed, 24 Apr 2024 22:54:55 +0200 Subject: [PATCH] Split milestones and projects --- .../repo/issue/view_content/sidebar.tmpl | 80 +------------------ .../view_content/sidebar/milestones.tmpl | 22 +++++ .../issue/view_content/sidebar/projects.tmpl | 54 +++++++++++++ 3 files changed, 78 insertions(+), 78 deletions(-) create mode 100644 templates/repo/issue/view_content/sidebar/milestones.tmpl create mode 100644 templates/repo/issue/view_content/sidebar/projects.tmpl diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index 37280f69e..b410d1d19 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -11,86 +11,10 @@
- -
- {{ctx.Locale.Tr "repo.issues.new.no_milestone"}} - -
- + {{template "repo/issue/view_content/sidebar/milestones" .}}
- -
- {{ctx.Locale.Tr "repo.issues.new.no_projects"}} - -
- + {{template "repo/issue/view_content/sidebar/projects" .}}
diff --git a/templates/repo/issue/view_content/sidebar/milestones.tmpl b/templates/repo/issue/view_content/sidebar/milestones.tmpl new file mode 100644 index 000000000..661ca8074 --- /dev/null +++ b/templates/repo/issue/view_content/sidebar/milestones.tmpl @@ -0,0 +1,22 @@ + +
+ {{ctx.Locale.Tr "repo.issues.new.no_milestone"}} + +
diff --git a/templates/repo/issue/view_content/sidebar/projects.tmpl b/templates/repo/issue/view_content/sidebar/projects.tmpl new file mode 100644 index 000000000..91d75f3bd --- /dev/null +++ b/templates/repo/issue/view_content/sidebar/projects.tmpl @@ -0,0 +1,54 @@ + +
+ {{ctx.Locale.Tr "repo.issues.new.no_projects"}} + +