From 420fc8efc24d7a77598307557e5b38077d0efafc Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Tue, 21 Nov 2017 04:49:33 +0100 Subject: Disable add key button if SSH is disabled (#2873) --- templates/user/settings/keys_ssh.tmpl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates/user') 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 @@

{{.i18n.Tr "settings.manage_ssh_keys"}}
+ {{if not .DisableSSH}}
{{.i18n.Tr "settings.add_key"}}
+ {{else}} +
{{.i18n.Tr "settings.ssh_disabled"}}
+ {{end}}

-- cgit v1.2.3