2016-06-02 11:05:42 +05:30
|
|
|
%li.key-list-item
|
2018-11-08 19:23:39 +05:30
|
|
|
.float-left.append-right-10
|
2018-03-17 18:26:18 +05:30
|
|
|
- if key.valid?
|
2018-11-08 19:23:39 +05:30
|
|
|
= icon 'key', class: 'settings-list-icon d-none d-sm-block'
|
2018-03-17 18:26:18 +05:30
|
|
|
- else
|
2018-11-08 19:23:39 +05:30
|
|
|
= icon 'exclamation-triangle', class: 'settings-list-icon d-none d-sm-block has-tooltip',
|
2018-03-17 18:26:18 +05:30
|
|
|
title: key.errors.full_messages.join(', ')
|
|
|
|
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.key-list-item-info
|
|
|
|
= link_to path_to_key(key, is_admin), class: "title" do
|
|
|
|
= key.title
|
|
|
|
.description
|
|
|
|
= key.fingerprint
|
2017-08-17 22:00:37 +05:30
|
|
|
.last-used-at
|
|
|
|
last used:
|
|
|
|
= key.last_used_at ? time_ago_with_tooltip(key.last_used_at) : 'n/a'
|
2018-11-08 19:23:39 +05:30
|
|
|
.float-right
|
2016-06-02 11:05:42 +05:30
|
|
|
%span.key-created-at
|
2019-09-04 21:01:54 +05:30
|
|
|
= s_('Profiles|Created %{time_ago}'.html_safe) % { time_ago:time_ago_with_tooltip(key.created_at)}
|
|
|
|
- if key.can_delete?
|
|
|
|
= link_to path_to_key(key, is_admin), data: { confirm: _('Are you sure?')}, method: :delete, class: "btn btn-transparent prepend-left-10" do
|
|
|
|
%span.sr-only= _('Remove')
|
|
|
|
= icon('trash')
|