aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-08-13 17:04:42 +0800
committerGitHub <noreply@github.com>2023-08-13 11:04:42 +0200
commitca74b074ea84dea1c37f7bd04b299de602e57e8c (patch)
treeab62e80ee2fe1e66253adc69d5e112dd9198c190 /templates
parent7018659a1d7ef2ec1303ae26a8925fff92898327 (diff)
downloadgitea-ca74b074ea84dea1c37f7bd04b299de602e57e8c.tar.gz
gitea-ca74b074ea84dea1c37f7bd04b299de602e57e8c.zip
Use correct pull request commit link instead of a generic commit link (#26434)
Replace #26197 Since #25528 merged, the links of pull request commits should be redirect to pull file changes UI but not the generic one. --------- Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/commits_list.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl
index 9f1d182158..b9b42ebb23 100644
--- a/templates/repo/commits_list.tmpl
+++ b/templates/repo/commits_list.tmpl
@@ -43,6 +43,8 @@
{{end}}
{{if $.PageIsWiki}}
<a href="{{$commitRepoLink}}/wiki/commit/{{.ID}}" rel="nofollow" class="{{$class}}">
+ {{else if $.PageIsPullCommits}}
+ <a href="{{$commitRepoLink}}/pulls/{{$.Issue.Index}}/commits/{{.ID}}" rel="nofollow" class="{{$class}}">
{{else if $.Reponame}}
<a href="{{$commitRepoLink}}/commit/{{.ID}}" rel="nofollow" class="{{$class}}">
{{else}}
@@ -54,6 +56,8 @@
{{end}}
{{if $.PageIsWiki}}
</a>
+ {{else if $.PageIsPullCommits}}
+ </a>
{{else if $.Reponame}}
</a>
{{else}}