2016-06-30 03:32:05 -04:00
|
|
|
= f.hidden_field(:name)
|
|
|
|
|
2016-08-01 17:08:36 -04:00
|
|
|
= dropdown_tag('Select branch or create wildcard',
|
2017-05-11 11:47:44 -04:00
|
|
|
options: { toggle_class: 'js-protected-branch-select js-filter-submit wide git-revision-dropdown-toggle',
|
|
|
|
filter: true, dropdown_class: "dropdown-menu-selectable git-revision-dropdown", placeholder: "Search protected branches",
|
2016-06-30 03:32:05 -04:00
|
|
|
footer_content: true,
|
|
|
|
data: { show_no: true, show_any: true, show_upcoming: true,
|
|
|
|
selected: params[:protected_branch_name],
|
|
|
|
project_id: @project.try(:id) } }) do
|
|
|
|
|
2016-08-01 17:08:36 -04:00
|
|
|
%ul.dropdown-footer-list
|
2016-06-30 03:32:05 -04:00
|
|
|
%li
|
2017-03-27 22:27:25 -04:00
|
|
|
%button{ class: "create-new-protected-branch-button js-create-new-protected-branch", title: "New Protected Branch" }
|
2016-08-05 03:05:58 -04:00
|
|
|
Create wildcard
|
|
|
|
%code
|