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

_branch_names_fields.html.haml « branch_defaults « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4e4a72c154f9e6fc3cf9f35194eb7f50133da2df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- if @project.project_feature.issues_access_level > 0
  %fieldset#branch-names-settings
    .form-group
      = f.label :issue_branch_template, _('Branch name template'), class: 'label-bold'
      %p= s_('ProjectSettings|Branches created from issues follow this pattern.')

    .form-group
      .gl-mb-2
        = f.text_field :issue_branch_template, class: 'form-control gl-mb-2', placeholder: "%{id}-%{title}"
        %p.form-text.text-muted
          = s_('ProjectSettings|Leave empty to use default template.')
          = sprintf(s_('ProjectSettings|Maximum %{maxLength} characters.'), { maxLength: Issue::MAX_BRANCH_TEMPLATE })
          - branch_name_help_link = help_page_path('user/project/repository/branches/index.md', anchor: 'name-your-branch')
          = link_to _('What variables can I use?'), branch_name_help_link, target: "_blank"
        = render_if_exists 'projects/branch_defaults/branch_names_help'