mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	Backport #25320 by @hiifong Fix #25281 When viewing a file, hide the add button   Co-authored-by: hiifong <i@hiif.ong>
This commit is contained in:
		@@ -83,7 +83,7 @@
 | 
			
		||||
					<a href="{{.Repository.Link}}/find/{{.BranchNameSubURL}}" class="ui compact basic button">{{.locale.Tr "repo.find_file.go_to_file"}}</a>
 | 
			
		||||
				{{end}}
 | 
			
		||||
 | 
			
		||||
				{{if and .CanWriteCode .IsViewBranch (not .Repository.IsArchived)}}
 | 
			
		||||
				{{if and .CanWriteCode .IsViewBranch (not .Repository.IsArchived) (not .IsViewFile)}}
 | 
			
		||||
					<button class="ui dropdown basic compact jump button gt-mr-2"{{if not .Repository.CanEnableEditor}} disabled{{end}}>
 | 
			
		||||
						{{.locale.Tr "repo.editor.add_file"}}
 | 
			
		||||
						{{svg "octicon-triangle-down" 14 "dropdown icon"}}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user