2014-12-30 10:01:30 +00:00
|
|
|
- is_admin = defined?(admin) ? true : false
|
2016-02-29 17:19:00 +00:00
|
|
|
.row.prepend-top-default
|
2014-12-29 16:09:39 +00:00
|
|
|
.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:
|
2016-01-06 22:27:56 +00:00
|
|
|
%strong= @key.created_at.to_s(:medium)
|
2016-12-21 14:59:54 +00:00
|
|
|
%li
|
|
|
|
%span.light Last used on:
|
|
|
|
%strong= @key.last_used_at.try(:to_s, :medium) || 'N/A'
|
2014-12-29 16:09:39 +00:00
|
|
|
|
|
|
|
.col-md-8
|
2017-08-21 14:01:05 +00:00
|
|
|
= form_errors(@key, 'The key has the following') unless @key.valid?
|
2014-12-29 16:09:39 +00:00
|
|
|
%p
|
|
|
|
%span.light Fingerprint:
|
2015-06-03 21:54:16 +00:00
|
|
|
%code.key-fingerprint= @key.fingerprint
|
2014-12-29 16:09:39 +00:00
|
|
|
%pre.well-pre
|
|
|
|
= @key.key
|
2015-10-09 12:30:42 +00:00
|
|
|
.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"
|