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

_key_details.html.haml « keys « profiles « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d44603c638c06c31c0c67bf9b73127412986ffea (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
- is_admin = defined?(admin) ? true : false
.row.prepend-top-default
  .col-md-4
    .panel.panel-default
      .panel-heading
        SSH Key
      %ul.well-list
        %li
          %span.light Title:
          %strong= @key.title
        %li
          %span.light Created on:
          %strong= @key.created_at.to_s(:medium)
        %li
          %span.light Last used on:
          %strong= @key.last_used_at.try(:to_s, :medium) || 'N/A'

  .col-md-8
    %p
      %span.light Fingerprint:
      %code.key-fingerprint= @key.fingerprint
    %pre.well-pre
      = @key.key
  .col-md-12
    .pull-right
      = link_to 'Remove', path_to_key(@key, is_admin), data: {confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove delete-key"