_index.html.haml 882 Bytes
Newer Older
Mayra Cabrera's avatar
Mayra Cabrera committed
1
- expanded = expand_deploy_tokens_section?(@deploy_tokens.temporal_token, @deploy_token)
2 3 4

%section.settings.no-animate{ class: ('expanded' if expanded) }
  .settings-header
5
    %h4= s_('DeployTokens|Deploy Tokens')
Mayra Cabrera's avatar
Mayra Cabrera committed
6
    %button.btn.js-settings-toggle.qa-expand-deploy-keys{ type: 'button' }
7 8
      = expanded ? 'Collapse' : 'Expand'
    %p
9
      = s_('DeployTokens|Deploy tokens allow read-only access to your repository and registry images.')
10
  .settings-content
Mayra Cabrera's avatar
Mayra Cabrera committed
11 12
    - if @deploy_tokens.temporal_token
      = render 'projects/deploy_tokens/new_deploy_token', new_token: @deploy_tokens.temporal_token
13 14

    %h5.prepend-top-0
15
      = s_('DeployTokens|Add a deploy token')
16 17 18
    = render 'projects/deploy_tokens/form', project: @project, token: @deploy_token, presenter: @deploy_tokens
    %hr
    = render 'projects/deploy_tokens/table', project: @project, active_tokens: @deploy_tokens