debian-mirror-gitlab/app/views/groups/settings/ci_cd/show.html.haml

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

56 lines
3 KiB
Text
Raw Normal View History

2021-04-17 20:07:23 +05:30
- breadcrumb_title _("CI/CD Settings")
- page_title _("CI/CD")
2017-09-10 17:25:29 +05:30
2019-07-31 22:56:46 +05:30
- expanded = expanded_by_default?
2019-12-21 20:55:43 +05:30
- general_expanded = @group.errors.empty? ? expanded : true
-# Given we only have one field in this form which is also admin-only,
-# we don't want to show an empty section to non-admin users,
- if can?(current_user, :update_max_artifacts_size, @group)
%section.settings#js-general-pipeline-settings.no-animate{ class: ('expanded' if general_expanded) }
.settings-header
2021-11-11 11:23:49 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2019-12-21 20:55:43 +05:30
= _("General pipelines")
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2019-12-21 20:55:43 +05:30
= expanded ? _('Collapse') : _('Expand')
%p
= _("Customize your pipeline configuration.")
.settings-content
= render 'groups/settings/ci_cd/form', group: @group
2018-03-17 18:26:18 +05:30
2018-12-13 13:39:08 +05:30
%section.settings#ci-variables.no-animate{ class: ('expanded' if expanded) }
2018-10-15 14:42:47 +05:30
.settings-header
2019-02-15 15:39:39 +05:30
= render 'ci/variables/header', expanded: expanded
2018-10-15 14:42:47 +05:30
.settings-content
= render 'ci/variables/index', save_endpoint: group_variables_path
2018-03-17 18:26:18 +05:30
2018-10-15 14:42:47 +05:30
%section.settings#runners-settings.no-animate{ class: ('expanded' if expanded) }
.settings-header
2021-11-11 11:23:49 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-11-08 19:23:39 +05:30
= _('Runners')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-10-15 14:42:47 +05:30
= expanded ? _('Collapse') : _('Expand')
%p
2021-03-08 18:12:59 +05:30
= _("Runners are processes that pick up and execute CI/CD jobs for GitLab.")
2022-08-27 11:52:29 +05:30
= link_to s_('What is GitLab Runner?'), 'https://docs.gitlab.com/runner/', target: '_blank', rel: 'noopener noreferrer'
2018-10-15 14:42:47 +05:30
.settings-content
2021-09-30 23:02:18 +05:30
= render 'groups/runners/settings'
2019-07-07 11:18:12 +05:30
%section.settings#auto-devops-settings.no-animate{ class: ('expanded' if expanded) }
.settings-header
2021-11-11 11:23:49 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2019-07-07 11:18:12 +05:30
= _('Auto DevOps')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2019-07-07 11:18:12 +05:30
= expanded ? _('Collapse') : _('Expand')
%p
- auto_devops_url = help_page_path('topics/autodevops/index')
2022-11-25 23:54:43 +05:30
- quickstart_url = help_page_path('topics/autodevops/cloud_deployments/auto_devops_with_gke')
2019-07-07 11:18:12 +05:30
- auto_devops_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: auto_devops_url }
2020-03-13 15:44:24 +05:30
- quickstart_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: quickstart_url }
2021-03-08 18:12:59 +05:30
= s_('AutoDevOps|%{auto_devops_start}Automate building, testing, and deploying%{auto_devops_end} your applications based on your continuous integration and delivery configuration. %{quickstart_start}How do I get started?%{quickstart_end}').html_safe % { auto_devops_start: auto_devops_start, auto_devops_end: '</a>'.html_safe, quickstart_start: quickstart_start, quickstart_end: '</a>'.html_safe }
2019-07-07 11:18:12 +05:30
.settings-content
= render 'groups/settings/ci_cd/auto_devops_form', group: @group
2022-07-23 23:45:48 +05:30
= render_if_exists 'groups/settings/ci_cd/protected_environments', expanded: expanded