debian-mirror-gitlab/app/views/profiles/gpg_keys/_key.html.haml

26 lines
1.1 KiB
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
%li.key-list-item
2018-11-08 19:23:39 +05:30
.float-left.append-right-10
= icon 'key', class: "settings-list-icon d-none d-sm-block"
2017-09-10 17:25:29 +05:30
.key-list-item-info
- key.emails_with_verified_status.map do |email, verified|
2018-03-17 18:26:18 +05:30
= render partial: 'shared/email_with_badge', locals: { email: email, verified: verified }
2017-09-10 17:25:29 +05:30
.description
%code= key.fingerprint
2018-03-17 18:26:18 +05:30
- if key.subkeys.present?
.subkeys
%span.bold Subkeys:
%ul.subkeys-list
- key.subkeys.each do |subkey|
%li
%code= subkey.fingerprint
2018-11-08 19:23:39 +05:30
.float-right
2017-09-10 17:25:29 +05:30
%span.key-created-at
created #{time_ago_with_tooltip(key.created_at)}
= 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
%span.sr-only Remove
= icon('trash')
= 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