BigW Consortium Gitlab

_key_details.html.haml 745 Bytes
Newer Older
1
- is_admin = defined?(admin) ? true : false
Phil Hughes committed
2
.row.prepend-top-default
3 4 5 6 7 8 9 10 11 12
  .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:
13
          %strong= @key.created_at.to_s(:medium)
14 15 16
        %li
          %span.light Last used on:
          %strong= @key.last_used_at.try(:to_s, :medium) || 'N/A'
17 18 19 20

  .col-md-8
    %p
      %span.light Fingerprint:
21
      %code.key-fingerprint= @key.fingerprint
22 23
    %pre.well-pre
      = @key.key
24 25 26
  .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"