summaryrefslogtreecommitdiff
path: root/app/views/profiles/gpg_keys/_key_table.html.haml
blob: ebbd1c8f67233298b1ac8a36bb9356e7a7446031 (plain)
1
2
3
4
5
6
7
8
9
10
11
- is_admin = local_assigns.fetch(:admin, false)

- if @gpg_keys.any?
  %ul.content-list
    = render partial: 'profiles/gpg_keys/key', collection: @gpg_keys, locals: { is_admin: is_admin }
- else
  %p.settings-message.text-center
    - if is_admin
      = _('There are no GPG keys associated with this account.')
    - else
      = _('There are no GPG keys with access to your account.')