debian-mirror-gitlab/app/views/admin/application_settings/_default_branch.html.haml

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

18 lines
1,017 B
Text
Raw Normal View History

2022-05-07 20:08:51 +05:30
= gitlab_ui_form_for @application_setting, url: repository_admin_application_settings_path(anchor: 'js-default-branch-name'), html: { class: 'fieldset-form' } do |f|
2022-10-11 01:57:18 +05:30
= form_errors(@application_setting)
2020-07-28 23:09:34 +05:30
2021-06-08 01:23:25 +05:30
- fallback_branch_name = "<code>#{Gitlab::DefaultBranch.value}</code>"
2020-07-28 23:09:34 +05:30
%fieldset
.form-group
2022-05-07 20:08:51 +05:30
= f.label :default_branch_name, _('Initial default branch name'), class: 'label-light'
2021-06-08 01:23:25 +05:30
= f.text_field :default_branch_name, placeholder: Gitlab::DefaultBranch.value, class: 'form-control gl-form-input'
2020-07-28 23:09:34 +05:30
%span.form-text.text-muted
2021-09-30 23:02:18 +05:30
= (s_("AdminSettings|If not specified at the group or instance level, the default is %{default_initial_branch_name}. Does not affect existing repositories.") % { default_initial_branch_name: fallback_branch_name } ).html_safe
2020-10-24 23:57:45 +05:30
2022-05-07 20:08:51 +05:30
= render 'shared/default_branch_protection', f: f
= render_if_exists 'admin/application_settings/group_owners_can_manage_default_branch_protection_setting', form: f
2022-08-27 11:52:29 +05:30
= f.submit _('Save changes'), pajamas_button: true