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

28 lines
1.2 KiB
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
%li.key-list-item
2020-07-28 23:09:34 +05:30
.float-left.gl-mr-3
2018-11-08 19:23:39 +05:30
= 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
2020-01-01 13:55:28 +05:30
%span.text-truncate
2017-09-10 17:25:29 +05:30
%code= key.fingerprint
2018-03-17 18:26:18 +05:30
- if key.subkeys.present?
.subkeys
2019-09-04 21:01:54 +05:30
%span.bold
= _('Subkeys')
= ':'
2018-03-17 18:26:18 +05:30
%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
2019-09-04 21:01:54 +05:30
= s_('Profiles|Created %{time_ago}'.html_safe) % { time_ago:time_ago_with_tooltip(key.created_at)}
2020-07-28 23:09:34 +05:30
= 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 gl-ml-3" do
2019-09-04 21:01:54 +05:30
%span.sr-only= _('Remove')
2017-09-10 17:25:29 +05:30
= icon('trash')
2020-07-28 23:09:34 +05:30
= 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 gl-ml-3" do
2019-09-04 21:01:54 +05:30
%span.sr-only= _('Revoke')
= _('Revoke')