show.html.haml 2.47 KB
Newer Older
1
- @content_class = "limit-container-width" unless fluid_layout
2 3
- page_title _("CI / CD Settings")
- page_title _("CI / CD")
4

5
- expanded = Rails.env.test?
6
- general_expanded = @project.errors.empty? ? expanded : true
7

8
%section.settings#js-general-pipeline-settings.no-animate{ class: ('expanded' if general_expanded) }
9 10
  .settings-header
    %h4
11
      = _("General pipelines")
12
    %button.btn.js-settings-toggle{ type: 'button' }
13
      = expanded ? _('Collapse') : _('Expand')
14
    %p
15
      = _("Customize your pipeline configuration, view your pipeline status and coverage report.")
16
  .settings-content
17
    = render 'form'
18

19 20
/
  %section.qa-autodevops-settings.settings#autodevops-settings.no-animate{ class: ('expanded' if expanded) }
21 22
  .settings-header
    %h4
23
      = s_('CICD|Auto DevOps')
24 25
    %button.btn.btn-default.js-settings-toggle{ type: 'button' }
      = expanded ? _('Collapse') : _('Expand')
26
    %p
27 28
      = s_('CICD|Auto DevOps will automatically build, test, and deploy your application based on a predefined Continuous Integration and Delivery configuration.')
      = link_to s_('CICD|Learn more about Auto DevOps'), help_page_path('topics/autodevops/index.md')
29
  .settings-content
30
    = render 'autodevops_form', auto_devops_enabled: @project.auto_devops_enabled?
31

32 33
= render_if_exists 'projects/settings/ci_cd/protected_environments', expanded: expanded

34
%section.qa-runners-settings.settings.no-animate#js-runners-settings{ class: ('expanded' if expanded) }
35 36
  .settings-header
    %h4
37
      = _("Runners")
38
    %button.btn.js-settings-toggle{ type: 'button' }
39
      = expanded ? _('Collapse') : _('Expand')
40
    %p
41
      = _("Register and see your runners for this project.")
42
  .settings-content
43 44
    = render 'projects/runners/index'

45
%section.qa-variables-settings.settings.no-animate{ class: ('expanded' if expanded) }
46
  .settings-header
47
    = render 'ci/variables/header', expanded: expanded
48
  .settings-content
49
    = render 'ci/variables/index', save_endpoint: project_variables_path(@project)
50

51
%section.settings.no-animate#js-pipeline-triggers{ class: ('expanded' if expanded) }
52 53
  .settings-header
    %h4
54
      = _("Pipeline triggers")
55
    %button.btn.js-settings-toggle{ type: 'button' }
56
      = expanded ? _('Collapse') : _('Expand')
57
    %p
58
      = _("Triggers can force a specific branch or tag to get rebuilt with an API call.  These tokens will impersonate their associated user including their access to projects and their project permissions.")
59
  .settings-content
60
    = render 'projects/triggers/index'