debian-mirror-gitlab/app/views/shared/deploy_tokens/_index.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
1.1 KiB
Text
Raw Normal View History

2022-10-11 01:57:18 +05:30
- expanded = expand_deploy_tokens_section?(@new_deploy_token, @created_deploy_token)
2020-04-08 14:13:33 +05:30
2021-06-08 01:23:25 +05:30
%section.settings.no-animate#js-deploy-tokens{ class: ('expanded' if expanded), data: { qa_selector: 'deploy_tokens_settings_content' } }
2020-04-08 14:13:33 +05:30
.settings-header
2021-04-17 20:07:23 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only= s_('DeployTokens|Deploy tokens')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
= expanded ? _('Collapse') : _('Expand')
2020-04-08 14:13:33 +05:30
%p
= description
.settings-content
2023-01-13 00:05:48 +05:30
#js-new-deploy-token{ data: {
container_registry_enabled: container_registry_enabled?(group_or_project),
packages_registry_enabled: packages_registry_enabled?(group_or_project),
create_new_token_path: create_deploy_token_path(group_or_project),
token_type: group_or_project.is_a?(Group) ? 'group' : 'project',
deploy_tokens_help_url: help_page_path('user/project/deploy_tokens/index.md')
2022-11-25 23:54:43 +05:30
}
2023-01-13 00:05:48 +05:30
}
2020-04-08 14:13:33 +05:30
%hr
= render 'shared/deploy_tokens/table', group_or_project: group_or_project, active_tokens: @deploy_tokens