2017-02-22 10:24:48 -05:00
%li.key-list-item
2020-07-15 05:09:34 -04:00
.float-left.gl-mr-3
2020-08-10 14:09:54 -04:00
= sprite_icon('key', css_class: "settings-list-icon d-none d-sm-block gl-mt-4")
2017-02-22 10:24:48 -05:00
.key-list-item-info
2017-07-04 07:46:33 -04:00
- key.emails_with_verified_status.map do |email, verified|
2017-09-09 09:18:40 -04:00
= render partial: 'shared/email_with_badge', locals: { email: email, verified: verified }
2017-07-04 07:46:33 -04:00
2019-12-09 07:07:58 -05:00
%span.text-truncate
2017-07-25 10:23:52 -04:00
%code= key.fingerprint
2017-09-27 21:45:08 -04:00
- if key.subkeys.present?
.subkeys
2019-05-30 13:56:56 -04:00
%span.bold
= _('Subkeys')
= ':'
2017-09-27 21:45:08 -04:00
%ul.subkeys-list
- key.subkeys.each do |subkey|
%li
%code= subkey.fingerprint
2018-04-09 13:42:45 -04:00
.float-right
2017-02-22 10:24:48 -05:00
%span.key-created-at
2021-04-07 02:09:04 -04:00
= s_('Profiles|Created %{time_ago}'.html_safe) % { time_ago: time_ago_with_tooltip(key.created_at) }
2020-10-19 08:09:20 -04:00
= 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: "gl-button btn btn-danger gl-ml-3" do
2019-05-30 13:56:56 -04:00
%span.sr-only= _('Remove')
2020-08-21 05:10:08 -04:00
= sprite_icon('remove')
2020-10-19 08:09:20 -04:00
= 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: "gl-button btn btn-danger gl-ml-3" do
2019-05-30 13:56:56 -04:00
%span.sr-only= _('Revoke')
= _('Revoke')