mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 02:04:11 +01:00 
			
		
		
		
	Hide add file button for pull mirrors (#25748)
				
					
				
			I think hiding the add file button for mirror repositories that can keep the ui clean. Before:  After: 
This commit is contained in:
		
							parent
							
								
									32b26181d7
								
							
						
					
					
						commit
						a6a9389c70
					
				@ -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) (not .IsViewFile)}}
 | 
			
		||||
				{{if and .CanWriteCode .IsViewBranch (not .Repository.IsMirror) (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"}}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user