Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_key.html.haml « keys « profiles « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ce20994b0f4bad8b0e0b2e53b0cf97b2afcf36c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%li.key-list-item
  .float-left.append-right-10
    - if key.valid?
      = icon 'key', class: 'settings-list-icon d-none d-sm-block'
    - else
      = icon 'exclamation-triangle', class: 'settings-list-icon d-none d-sm-block has-tooltip',
        title: key.errors.full_messages.join(', ')


  .key-list-item-info
    = 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'
  .float-right
    %span.key-created-at
      created #{time_ago_with_tooltip(key.created_at)}
    = 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')