mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-30 22:11:07 +00:00 
			
		
		
		
	Disable add key button if SSH is disabled (#2873)
This commit is contained in:
		
					parent
					
						
							
								1f7aab6e19
							
						
					
				
			
			
				commit
				
					
						420fc8efc2
					
				
			
		
					 8 changed files with 39 additions and 8 deletions
				
			
		|  | @ -1,7 +1,11 @@ | |||
| <h4 class="ui top attached header"> | ||||
|   {{.i18n.Tr "settings.manage_ssh_keys"}} | ||||
|   <div class="ui right"> | ||||
|   {{if not .DisableSSH}} | ||||
|     <div class="ui blue tiny show-panel button" data-panel="#add-ssh-key-panel">{{.i18n.Tr "settings.add_key"}}</div> | ||||
|   {{else}} | ||||
|     <div class="ui blue tiny button disabled">{{.i18n.Tr "settings.ssh_disabled"}}</div> | ||||
|   {{end}} | ||||
|   </div> | ||||
| </h4> | ||||
| <div class="ui attached segment"> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue