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>
// The "issues/new" and "issues/new/choose" share the same query parameters "project" and "milestone", if no template here, just redirect to the "issues/new" page with these parameters.
<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>
</div>
</div>
</div>
@ -26,7 +26,7 @@
<br/>{{.i18n.Tr"repo.issues.choose.blank_about"}}
<br/>{{.i18n.Tr"repo.issues.choose.blank_about"}}
</div>
</div>
<div class="column right aligned">
<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>