mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 21:16:26 +01:00 
			
		
		
		
	Backport #27916 by @sebastian-sauer Show the correct sha when viewing a single commit.  Co-authored-by: sebastian-sauer <sauer.sebastian@gmail.com>
This commit is contained in:
		
							parent
							
								
									61d3d9205b
								
							
						
					
					
						commit
						2f56ab7999
					
				@ -50,7 +50,7 @@
 | 
				
			|||||||
	{{if not .DiffNotAvailable}}
 | 
						{{if not .DiffNotAvailable}}
 | 
				
			||||||
		{{if and .IsShowingOnlySingleCommit .PageIsPullFiles}}
 | 
							{{if and .IsShowingOnlySingleCommit .PageIsPullFiles}}
 | 
				
			||||||
			<div class="ui info message">
 | 
								<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>
 | 
								</div>
 | 
				
			||||||
		{{else if and (not .IsShowingAllCommits) .PageIsPullFiles}}
 | 
							{{else if and (not .IsShowingAllCommits) .PageIsPullFiles}}
 | 
				
			||||||
			<div class="ui info message">
 | 
								<div class="ui info message">
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user