2022-08-13 15:12:31 +05:30
|
|
|
- toggle_classes = local_assigns.fetch(:toggle_classes, '')
|
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
= f.hidden_field(:name)
|
|
|
|
|
2022-11-25 23:54:43 +05:30
|
|
|
= dropdown_tag(_('Select branch or create wildcard'),
|
2023-01-13 00:05:48 +05:30
|
|
|
options: { toggle_class: "js-protected-branch-select js-filter-submit wide monospace #{toggle_classes}",
|
2022-08-13 15:12:31 +05:30
|
|
|
filter: true,
|
2023-01-13 00:05:48 +05:30
|
|
|
dropdown_class: "dropdown-menu-selectable git-revision-dropdown",
|
|
|
|
dropdown_qa_selector: "protected_branch_dropdown_content",
|
2022-11-25 23:54:43 +05:30
|
|
|
placeholder: _("Search protected branches"),
|
2016-08-24 12:49:21 +05:30
|
|
|
footer_content: true,
|
|
|
|
data: { show_no: true, show_any: true, show_upcoming: true,
|
|
|
|
selected: params[:protected_branch_name],
|
2023-01-13 00:05:48 +05:30
|
|
|
project_id: @project.try(:id),
|
|
|
|
qa_selector: "protected_branch_dropdown" } }) do
|
2016-08-24 12:49:21 +05:30
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
%ul.dropdown-footer-list
|
2016-08-24 12:49:21 +05:30
|
|
|
%li
|
2022-11-25 23:54:43 +05:30
|
|
|
%button{ class: "dropdown-create-new-item-button js-dropdown-create-new-item", title: _("New Protected Branch") }
|
|
|
|
= _('Create wildcard')
|
2016-09-13 17:45:13 +05:30
|
|
|
%code
|