mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 15:10:43 +02:00
Improve single repo action for issue and pull requests (#20730)
Related to #20650. This will fix the behavior of the single repo action for pull requests and disables the button for other screens that don't have a single repo action currently.
This commit is contained in:
1 parent
353a5331d5
commit
aedfc923ad
2 files changed
+7
-1
No files matched your search
@@ -100,7 +100,11 @@
|
||||
</div>
|
||||
</div>
|
||||
{{if .SingleRepoLink}}
|
||||
<a class="ui green button" href="{{.SingleRepoLink}}/issues/new/choose">{{.locale.Tr "repo.issues.new"}}</a>
|
||||
{{if eq .SingleRepoAction "issue"}}
|
||||
<a class="ui green button" href="{{.SingleRepoLink}}/issues/new/choose">{{.locale.Tr "repo.issues.new"}}</a>
|
||||
{{else if eq .SingleRepoAction "pull"}}
|
||||
<a class="ui green button" href="{{.SingleRepoLink}}/compare">{{.locale.Tr "repo.pulls.new"}}</a>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user