aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorRomain <romdum@users.noreply.github.com>2021-09-10 13:33:06 +0200
committerGitHub <noreply@github.com>2021-09-10 13:33:06 +0200
commit9a938dc2980667bf4cbdb3af45c32f561af4bec4 (patch)
tree9cbae156a456c9c4492f6bb0528f2e5d121003b3 /templates
parent0faf175694e5692d933d06b07d87dedd2b6e55f5 (diff)
downloadgitea-9a938dc2980667bf4cbdb3af45c32f561af4bec4.tar.gz
gitea-9a938dc2980667bf4cbdb3af45c32f561af4bec4.zip
Add "new issue" button on project (#17001)
* Add "new issue" button on project
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/projects/view.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/repo/projects/view.tmpl b/templates/repo/projects/view.tmpl
index 7f0ac790de..9d08462b1c 100644
--- a/templates/repo/projects/view.tmpl
+++ b/templates/repo/projects/view.tmpl
@@ -2,12 +2,13 @@
<div class="page-content repository">
{{template "repo/header" .}}
<div class="ui container">
- <div class="ui three column stackable grid">
+ <div class="ui two column stackable grid">
<div class="column">
{{template "repo/issue/navbar" .}}
</div>
<div class="column right aligned">
{{if and .CanWriteProjects (not .Repository.IsArchived) .PageIsProjects}}
+ <a class="ui green button show-modal item" href="{{$.RepoLink}}/issues/new?project={{$.Project.ID}}">{{.i18n.Tr "repo.issues.new"}}</a>
<a class="ui green button show-modal item" data-modal="#new-board-item">{{.i18n.Tr "new_project_board"}}</a>
{{end}}
<div class="ui small modal" id="new-board-item">