File: _key_table.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (19 lines) | stat: -rw-r--r-- 803 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- is_admin = local_assigns.fetch(:admin, false)
- require_external_verification = Integrations::BeyondIdentity.activated_for_instance?
- if @gpg_keys.any?
  .table-holder
    %table.table.b-table.gl-table.b-table-stacked-md.-gl-mt-1.-gl-mb-2.ssh-keys-list
      %thead.gl-hidden.md:gl-table-header-group
        %tr
          %th= s_('Profiles|Key')
          %th= _('Status')
          %th= _('Created')
          %th.gl-text-right= _('Actions')
      = render partial: 'user_settings/gpg_keys/key', collection: @gpg_keys, locals: { is_admin: is_admin, require_external_verification: require_external_verification }

- else
  %p.gl-text-subtle
    - if is_admin
      = _('There are no GPG keys associated with this account.')
    - else
      = _('There are no GPG keys with access to your account.')