BigW Consortium Gitlab

_key.html.haml 639 Bytes
Newer Older
Phil Hughes committed
1 2
%li.key-list-item
  .pull-left.append-right-10
3
    = icon 'key', class: "settings-list-icon hidden-xs"
4
  .key-list-item-info
Phil Hughes committed
5 6 7 8
    = link_to path_to_key(key, is_admin), class: "title" do
      = key.title
    .description
      = key.fingerprint
9 10 11
    .last-used-at
      last used:
      = key.last_used_at ? time_ago_with_tooltip(key.last_used_at) : 'n/a'
Phil Hughes committed
12 13
  .pull-right
    %span.key-created-at
14
      created #{time_ago_with_tooltip(key.created_at)}
Phil Hughes committed
15 16 17
    = 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')