gitlab-org--gitlab-foss/app/views/profiles/keys/_key.html.haml

18 lines
639 B
Text
Raw Normal View History

2016-02-29 12:19:00 -05:00
%li.key-list-item
.pull-left.append-right-10
= icon 'key', class: "settings-list-icon hidden-xs"
2016-03-03 03:47:44 -05:00
.key-list-item-info
2016-02-29 12:19:00 -05:00
= link_to path_to_key(key, is_admin), class: "title" do
= key.title
.description
= key.fingerprint
.last-used-at
last used:
= key.last_used_at ? time_ago_with_tooltip(key.last_used_at) : 'n/a'
2016-02-29 12:19:00 -05:00
.pull-right
%span.key-created-at
2016-03-21 14:11:32 -04:00
created #{time_ago_with_tooltip(key.created_at)}
2016-02-29 12:19:00 -05:00
= 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')