diff options
Diffstat (limited to 'app/views/settings/keys/_key_table.html.haml')
-rw-r--r-- | app/views/settings/keys/_key_table.html.haml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/settings/keys/_key_table.html.haml b/app/views/settings/keys/_key_table.html.haml new file mode 100644 index 00000000000..4a6d8a1870d --- /dev/null +++ b/app/views/settings/keys/_key_table.html.haml @@ -0,0 +1,11 @@ +- is_admin = local_assigns.fetch(:admin, false) + +- if @keys.any? + %ul.content-list + = render partial: 'profiles/keys/key', collection: @keys, locals: { is_admin: is_admin } +- else + %p.settings-message.text-center + - if is_admin + = _('There are no SSH keys associated with this account.') + - else + = _('There are no SSH keys with access to your account.') |