Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_key.html.haml « gpg_keys « profiles « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d52b16814c03be34ffc58112ede18a8584799efd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
%li.key-list-item
  .float-left.gl-mr-3
    = sprite_icon('key', css_class: "settings-list-icon d-none d-sm-block gl-mt-4")
  .key-list-item-info
    - key.emails_with_verified_status.map do |email, verified|
      = render partial: 'shared/email_with_badge', locals: { email: email, verified: verified }

    %span.text-truncate
      %code= key.fingerprint
    - if key.subkeys.present?
      .subkeys
        %span.bold
          = _('Subkeys')
          = ':'
        %ul.subkeys-list
          - key.subkeys.each do |subkey|
            %li
              %code= subkey.fingerprint
  .float-right
    %span.key-created-at
      = html_escape(s_('Profiles|Created %{time_ago}')) % { time_ago: 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: "gl-button btn btn-icon btn-danger gl-ml-3" do
      %span.sr-only= _('Remove')
      = sprite_icon('remove')
    = 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
      %span.sr-only= _('Revoke')
      = _('Revoke')