gitlab-org--gitlab-foss/app/views/profiles/keys/_key_table.html.haml
Robert Speicher 70d2fde492 Restructure SSH key table partial rendering
Prior, we were double-checking `@keys.any?`, and unnecessarily assigning
`is_admin` in a view where it wasn't needed.
2016-03-03 16:14:00 -05:00

11 lines
367 B
Text

- is_admin = local_assigns.fetch(:admin, false)
- if @keys.any?
%ul.well-list
= render partial: 'profiles/keys/key', collection: @keys, locals: { is_admin: is_admin }
- else
%p.profile-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.