mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Display file mode for new file and file mode changes (#24966)
This MR introduces the addition of file mode display support for both new file creation and file mode changes, following a similar approach as GitLab. GitLab:  Gitea:  Replaces: https://github.com/go-gitea/gitea/pull/23159 Closes: https://github.com/go-gitea/gitea/issues/23021 --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		@@ -113,6 +113,11 @@
 | 
			
		||||
									{{if $file.IsVendored}}
 | 
			
		||||
										<span class="ui label gt-ml-3">{{$.locale.Tr "repo.diff.vendored"}}</span>
 | 
			
		||||
									{{end}}
 | 
			
		||||
									{{if and $file.Mode $file.OldMode}}
 | 
			
		||||
										<span class="gt-ml-4 gt-mono">{{$file.OldMode}} → {{$file.Mode}}</span>
 | 
			
		||||
									{{else if $file.Mode}}
 | 
			
		||||
										<span class="gt-ml-4 gt-mono">{{$file.Mode}}</span>
 | 
			
		||||
									{{end}}
 | 
			
		||||
								</div>
 | 
			
		||||
								<div class="diff-file-header-actions gt-df gt-ac">
 | 
			
		||||
									{{if $showFileViewToggle}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user