Skip to content

Commit 9a938dc

Browse files
authoredSep 10, 2021
Add "new issue" button on project (#17001)
* Add "new issue" button on project
1 parent 0faf175 commit 9a938dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎templates/repo/projects/view.tmpl

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
<div class="page-content repository">
33
{{template "repo/header" .}}
44
<div class="ui container">
5-
<div class="ui three column stackable grid">
5+
<div class="ui two column stackable grid">
66
<div class="column">
77
{{template "repo/issue/navbar" .}}
88
</div>
99
<div class="column right aligned">
1010
{{if and .CanWriteProjects (not .Repository.IsArchived) .PageIsProjects}}
11+
<a class="ui green button show-modal item" href="{{$.RepoLink}}/issues/new?project={{$.Project.ID}}">{{.i18n.Tr "repo.issues.new"}}</a>
1112
<a class="ui green button show-modal item" data-modal="#new-board-item">{{.i18n.Tr "new_project_board"}}</a>
1213
{{end}}
1314
<div class="ui small modal" id="new-board-item">

0 commit comments

Comments
 (0)
Please sign in to comment.