_key_details.html.haml 620 Bytes
Newer Older
1
- is_admin = defined?(admin) ? true : false
2 3 4 5 6 7 8 9 10 11 12
.row
  .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:
Robert Speicher's avatar
Robert Speicher committed
13
          %strong= @key.created_at.strftime('%b %-d, %Y')
14 15 16 17

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