diff options
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/settings/keys_ssh.tmpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/user/settings/keys_ssh.tmpl b/templates/user/settings/keys_ssh.tmpl index 1bdf0b15b1..18fd918012 100644 --- a/templates/user/settings/keys_ssh.tmpl +++ b/templates/user/settings/keys_ssh.tmpl @@ -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"> |