debian-mirror-gitlab/app/views/profiles/keys/_key_table.html.haml

12 lines
432 B
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
- is_admin = local_assigns.fetch(:admin, false)
2015-12-23 02:04:40 +05:30
- if @keys.any?
2020-04-08 14:13:33 +05:30
%ul.content-list.ssh-keys-list{ data: { qa_selector: 'ssh_keys_list' } }
2016-06-02 11:05:42 +05:30
= render partial: 'profiles/keys/key', collection: @keys, locals: { is_admin: is_admin }
2015-12-23 02:04:40 +05:30
- else
2016-06-02 11:05:42 +05:30
%p.settings-message.text-center
2015-12-23 02:04:40 +05:30
- if is_admin
2019-09-04 21:01:54 +05:30
= _('There are no SSH keys associated with this account.')
2015-12-23 02:04:40 +05:30
- else
2019-09-04 21:01:54 +05:30
= _('There are no SSH keys with access to your account.')