When viewing a file, hide the add button (#25320)
Fix #25281 When viewing a file, hide the add button  
This commit is contained in:
		
					parent
					
						
							
								f47744c3f1
							
						
					
				
			
			
				commit
				
					
						57120d9969
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -83,7 +83,7 @@
 | 
				
			||||||
					<a href="{{.Repository.Link}}/find/{{.BranchNameSubURL}}" class="ui compact basic button">{{.locale.Tr "repo.find_file.go_to_file"}}</a>
 | 
										<a href="{{.Repository.Link}}/find/{{.BranchNameSubURL}}" class="ui compact basic button">{{.locale.Tr "repo.find_file.go_to_file"}}</a>
 | 
				
			||||||
				{{end}}
 | 
									{{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}}>
 | 
										<button class="ui dropdown basic compact jump button gt-mr-2"{{if not .Repository.CanEnableEditor}} disabled{{end}}>
 | 
				
			||||||
						{{.locale.Tr "repo.editor.add_file"}}
 | 
											{{.locale.Tr "repo.editor.add_file"}}
 | 
				
			||||||
						{{svg "octicon-triangle-down" 14 "dropdown icon"}}
 | 
											{{svg "octicon-triangle-down" 14 "dropdown icon"}}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue