2018-04-05 18:07:36 -04:00
|
|
|
- expanded = expand_deploy_tokens_section?(@new_deploy_token)
|
2018-03-19 12:11:12 -04:00
|
|
|
|
2018-10-08 18:31:57 -04:00
|
|
|
%section.qa-deploy-tokens-settings.settings.no-animate#js-deploy-tokens{ class: ('expanded' if expanded) }
|
2018-03-19 12:11:12 -04:00
|
|
|
.settings-header
|
2018-04-02 11:57:44 -04:00
|
|
|
%h4= s_('DeployTokens|Deploy Tokens')
|
2018-04-02 10:45:37 -04:00
|
|
|
%button.btn.js-settings-toggle.qa-expand-deploy-keys{ type: 'button' }
|
2018-03-19 12:11:12 -04:00
|
|
|
= expanded ? 'Collapse' : 'Expand'
|
|
|
|
%p
|
2018-04-02 11:57:44 -04:00
|
|
|
= s_('DeployTokens|Deploy tokens allow read-only access to your repository and registry images.')
|
2018-03-19 12:11:12 -04:00
|
|
|
.settings-content
|
2018-04-05 18:07:36 -04:00
|
|
|
- if @new_deploy_token.persisted?
|
|
|
|
= render 'projects/deploy_tokens/new_deploy_token', deploy_token: @new_deploy_token
|
2018-06-18 07:38:22 -04:00
|
|
|
%h5.prepend-top-0
|
|
|
|
= s_('DeployTokens|Add a deploy token')
|
|
|
|
= render 'projects/deploy_tokens/form', project: @project, token: @new_deploy_token, presenter: @deploy_tokens
|
|
|
|
%hr
|
2018-03-19 12:11:12 -04:00
|
|
|
= render 'projects/deploy_tokens/table', project: @project, active_tokens: @deploy_tokens
|