aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-11-06 09:09:35 +0800
committerGitHub <noreply@github.com>2023-11-06 09:09:35 +0800
commit2f56ab7999b6cf7ee5f221a8cc55c66a6d6f5bb8 (patch)
tree0df56197c3fbdda8587e54b57cc3a85f8e877504 /templates/repo
parent61d3d9205bec9490677d69f70c2ac5731b9ee383 (diff)
downloadgitea-2f56ab7999b6cf7ee5f221a8cc55c66a6d6f5bb8.tar.gz
gitea-2f56ab7999b6cf7ee5f221a8cc55c66a6d6f5bb8.zip
Show correct commit sha when viewing single commit diff (#27916) (#27921)
Backport #27916 by @sebastian-sauer Show the correct sha when viewing a single commit. ![image](https://github.com/go-gitea/gitea/assets/1135157/5f39a84e-11ed-4700-b40b-eb9da6e91bec) Co-authored-by: sebastian-sauer <sauer.sebastian@gmail.com>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/diff/box.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index 9be801b7d3..f233a71e19 100644
--- a/templates/repo/diff/box.tmpl
+++ b/templates/repo/diff/box.tmpl
@@ -50,7 +50,7 @@
{{if not .DiffNotAvailable}}
{{if and .IsShowingOnlySingleCommit .PageIsPullFiles}}
<div class="ui info message">
- <div>{{ctx.Locale.Tr "repo.pulls.showing_only_single_commit" (ShortSha .BeforeCommitID)}} - <a href="{{$.Issue.Link}}/files?style={{if $.IsSplitStyle}}split{{else}}unified{{end}}&whitespace={{$.WhitespaceBehavior}}&show-outdated={{$.ShowOutdatedComments}}">{{ctx.Locale.Tr "repo.pulls.show_all_commits"}}</a></div>
+ <div>{{ctx.Locale.Tr "repo.pulls.showing_only_single_commit" (ShortSha .AfterCommitID)}} - <a href="{{$.Issue.Link}}/files?style={{if $.IsSplitStyle}}split{{else}}unified{{end}}&whitespace={{$.WhitespaceBehavior}}&show-outdated={{$.ShowOutdatedComments}}">{{ctx.Locale.Tr "repo.pulls.show_all_commits"}}</a></div>
</div>
{{else if and (not .IsShowingAllCommits) .PageIsPullFiles}}
<div class="ui info message">