summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorqwerty287 <80460567+qwerty287@users.noreply.github.com>2021-10-08 00:00:02 +0200
committerGitHub <noreply@github.com>2021-10-08 00:00:02 +0200
commitcd0928f0e8cdfada471507de4e2921f92d716cd6 (patch)
treea9c4e1d26da99d10f55d2d071a742a875012b350 /templates
parent25a200078724443afba3eca772d5c7e4db0a83cf (diff)
downloadgitea-cd0928f0e8cdfada471507de4e2921f92d716cd6.tar.gz
gitea-cd0928f0e8cdfada471507de4e2921f92d716cd6.zip
Allow adding multiple issues to a project (#17226)
Adds an option like for adding multiple issues to a milestone. Closes #17216
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/list.tmpl18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl
index 904b4d8bd0..64b68f145e 100644
--- a/templates/repo/issue/list.tmpl
+++ b/templates/repo/issue/list.tmpl
@@ -166,6 +166,24 @@
</div>
</div>
+ <!-- Projects -->
+ <div class="ui {{if not .Projects}}disabled{{end}} dropdown jump item">
+ <span class="text">
+ {{.i18n.Tr "repo.project_board"}}
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+ </span>
+ <div class="menu">
+ <div class="item issue-action" data-element-id="0" data-url="{{$.Link}}/projects">
+ {{.i18n.Tr "repo.issues.new.no_projects"}}
+ </div>
+ {{range .Projects}}
+ <div class="item issue-action" data-element-id="{{.ID}}" data-url="{{$.RepoLink}}/issues/projects">
+ {{.Title}}
+ </div>
+ {{end}}
+ </div>
+ </div>
+
<!-- Assignees -->
<div class="ui {{if not .Assignees}}disabled{{end}} dropdown jump item">
<span class="text">