2014-12-30 05:01:30 -05:00
|
|
|
- is_admin = defined?(admin) ? true : false
|
2016-02-29 12:19:00 -05:00
|
|
|
.row.prepend-top-default
|
2014-12-29 11:09:39 -05:00
|
|
|
.col-md-4
|
2018-04-10 13:11:34 -04:00
|
|
|
.card
|
|
|
|
.card-header
|
2019-05-30 13:56:56 -04:00
|
|
|
= _('SSH Key')
|
2018-05-29 11:08:35 -04:00
|
|
|
%ul.content-list
|
2014-12-29 11:09:39 -05:00
|
|
|
%li
|
2019-05-30 13:56:56 -04:00
|
|
|
%span.light= _('Title:')
|
2014-12-29 11:09:39 -05:00
|
|
|
%strong= @key.title
|
|
|
|
%li
|
2019-05-30 13:56:56 -04:00
|
|
|
%span.light= _('Created on:')
|
2016-01-06 17:27:56 -05:00
|
|
|
%strong= @key.created_at.to_s(:medium)
|
2016-12-21 09:59:54 -05:00
|
|
|
%li
|
2019-05-30 13:56:56 -04:00
|
|
|
%span.light= _('Last used on:')
|
2016-12-21 09:59:54 -05:00
|
|
|
%strong= @key.last_used_at.try(:to_s, :medium) || 'N/A'
|
2014-12-29 11:09:39 -05:00
|
|
|
|
|
|
|
.col-md-8
|
2017-08-28 16:33:35 -04:00
|
|
|
= form_errors(@key, type: 'key') unless @key.valid?
|
2014-12-29 11:09:39 -05:00
|
|
|
%p
|
2019-05-30 13:56:56 -04:00
|
|
|
%span.light= _('Fingerprint:')
|
2015-06-03 17:54:16 -04:00
|
|
|
%code.key-fingerprint= @key.fingerprint
|
2014-12-29 11:09:39 -05:00
|
|
|
%pre.well-pre
|
|
|
|
= @key.key
|
2015-10-09 08:30:42 -04:00
|
|
|
.col-md-12
|
2018-04-09 13:42:45 -04:00
|
|
|
.float-right
|
2019-05-29 09:47:40 -04:00
|
|
|
- if @key.can_delete?
|
|
|
|
= link_to _('Remove'), path_to_key(@key, is_admin), data: {confirm: _('Are you sure?')}, method: :delete, class: "btn btn-remove delete-key qa-delete-key-button"
|