BigW Consortium Gitlab

_key.html.haml 1.09 KB
Newer Older
1 2 3 4
%li.key-list-item
  .pull-left.append-right-10
    = icon 'key', class: "settings-list-icon hidden-xs"
  .key-list-item-info
Alexis Reigel committed
5
    - key.emails_with_verified_status.map do |email, verified|
6
      = render partial: 'shared/email_with_badge', locals: { email: email, verified: verified }
Alexis Reigel committed
7

8
    .description
9
      %code= key.fingerprint
10 11 12 13 14 15 16
    - if key.subkeys.present?
      .subkeys
        %span.bold Subkeys:
        %ul.subkeys-list
          - key.subkeys.each do |subkey|
            %li
              %code= subkey.fingerprint
17 18 19
  .pull-right
    %span.key-created-at
      created #{time_ago_with_tooltip(key.created_at)}
20
    = link_to profile_gpg_key_path(key), data: { confirm: 'Are you sure? Removing this GPG key does not affect already signed commits.' }, method: :delete, class: "btn btn-danger prepend-left-10" do
21 22
      %span.sr-only Remove
      = icon('trash')
23 24 25
    = link_to revoke_profile_gpg_key_path(key), data: { confirm: 'Are you sure? All commits that were signed with this GPG key will be unverified.' }, method: :put, class: "btn btn-danger prepend-left-10" do
      %span.sr-only Revoke
      Revoke