2016-03-03 20:49:00 +00:00
|
|
|
- is_admin = local_assigns.fetch(:admin, false)
|
|
|
|
|
2015-12-02 13:49:59 +00:00
|
|
|
- if @keys.any?
|
2020-03-13 09:09:23 +00:00
|
|
|
%ul.content-list.ssh-keys-list{ data: { qa_selector: 'ssh_keys_list' } }
|
2016-03-03 20:49:00 +00:00
|
|
|
= render partial: 'profiles/keys/key', collection: @keys, locals: { is_admin: is_admin }
|
|
|
|
- else
|
2016-04-25 13:42:17 +00:00
|
|
|
%p.settings-message.text-center
|
2016-03-03 20:49:00 +00:00
|
|
|
- if is_admin
|
2019-05-30 17:56:56 +00:00
|
|
|
= _('There are no SSH keys associated with this account.')
|
2016-03-03 20:49:00 +00:00
|
|
|
- else
|
2019-05-30 17:56:56 +00:00
|
|
|
= _('There are no SSH keys with access to your account.')
|