summaryrefslogtreecommitdiff
path: root/app/views/profiles/keys/_key_table.html.haml
blob: 8c9d546af4c395a459849a8c32628e070c3fc434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- is_admin = defined?(admin) ? true : false
- if @keys.any?
  .table-holder
    %table.table
      %thead.panel-heading
        %tr
          %th Title
          %th Fingerprint
          %th Added at
          %th
      %tbody
        - @keys.each do |key|
          = render 'profiles/keys/key', key: key, is_admin: is_admin
- else
  .nothing-here-block
    - if is_admin
      User has no ssh keys
    - else
      There are no SSH keys with access to your account.