Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_merge_request_squash_options_settings.html.haml « merge_requests « settings « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 372c07236009f80704a580a83ebfe837c0b9a608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- form = local_assigns.fetch(:form)

= form.fields_for :project_setting do |settings|
  .form-group
    %b= s_('ProjectSettings|Squash commits when merging')
    %p.text-secondary
      = s_('ProjectSettings|Set the default behavior of this option in merge requests. Changes to this are also applied to existing merge requests.')
      = link_to s_('ProjectSettings|What is squashing?'), help_page_path('user/project/merge_requests/squash_and_merge.md'), target: '_blank', rel: 'noopener noreferrer'

    = settings.gitlab_ui_radio_component :squash_option,
      :never,
      s_('ProjectSettings|Do not allow'),
      help_text: s_('ProjectSettings|Squashing is never performed and the checkbox is hidden.')
    = settings.gitlab_ui_radio_component :squash_option,
      :default_off,
      s_('ProjectSettings|Allow'),
      help_text: s_('ProjectSettings|Checkbox is visible and unselected by default.')
    = settings.gitlab_ui_radio_component :squash_option,
      :default_on,
      s_('ProjectSettings|Encourage'),
      help_text: s_('ProjectSettings|Checkbox is visible and selected by default.')
    = settings.gitlab_ui_radio_component :squash_option,
      :always,
      s_('ProjectSettings|Require'),
      help_text: s_('ProjectSettings|Squashing is always performed. Checkbox is visible and selected, and users cannot change it.')