aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/choose.tmpl
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-03-22 19:54:24 +0000
committerGitHub <noreply@github.com>2022-03-22 19:54:24 +0000
commitd2c165811a1bad081b2e99ca580e3bdbb18171f0 (patch)
tree25b9381bd920f347e4c2cce095741c3b0c8be780 /templates/repo/issue/choose.tmpl
parent461068cfa14bce6c1d6e24a6dc84b7ea0ac60080 (diff)
downloadgitea-d2c165811a1bad081b2e99ca580e3bdbb18171f0.tar.gz
gitea-d2c165811a1bad081b2e99ca580e3bdbb18171f0.zip
Use the new/choose link for New Issue on project page (#19172)
Extend issues/new/choose to pass the project id and change New Issue link on project page to use new/choose Fix #19170 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/repo/issue/choose.tmpl')
-rw-r--r--templates/repo/issue/choose.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/choose.tmpl b/templates/repo/issue/choose.tmpl
index 0cec1ef63c..4a26e4f689 100644
--- a/templates/repo/issue/choose.tmpl
+++ b/templates/repo/issue/choose.tmpl
@@ -14,7 +14,7 @@
<br/>{{.About | RenderEmojiPlain}}
</div>
<div class="column right aligned">
- <a href="{{$.RepoLink}}/issues/new?template={{.FileName}}{{if $.milestone}}&milestone={{$.milestone}}{{end}}" class="ui green button">{{$.i18n.Tr "repo.issues.choose.get_started"}}</a>
+ <a href="{{$.RepoLink}}/issues/new?template={{.FileName}}{{if $.milestone}}&milestone={{$.milestone}}{{end}}{{if $.project}}&project={{$.project}}{{end}}" class="ui green button">{{$.i18n.Tr "repo.issues.choose.get_started"}}</a>
</div>
</div>
</div>
@@ -26,7 +26,7 @@
<br/>{{.i18n.Tr "repo.issues.choose.blank_about"}}
</div>
<div class="column right aligned">
- <a href="{{.RepoLink}}/issues/new{{if .milestone}}?milestone={{.milestone}}{{end}}" class="ui green button">{{$.i18n.Tr "repo.issues.choose.get_started"}}</a>
+ <a href="{{.RepoLink}}/issues/new?{{if .milestone}}&milestone={{.milestone}}{{end}}{{if $.project}}&project={{$.project}}{{end}}" class="ui green button">{{$.i18n.Tr "repo.issues.choose.get_started"}}</a>
</div>
</div>
</div>