debian-mirror-gitlab/app/views/projects/protected_branches/shared/_dropdown.html.haml

16 lines
855 B
Text
Raw Normal View History

2016-08-24 12:49:21 +05:30
= f.hidden_field(:name)
2016-09-13 17:45:13 +05:30
= dropdown_tag('Select branch or create wildcard',
2018-12-23 12:14:25 +05:30
options: { toggle_class: 'js-protected-branch-select js-filter-submit wide monospace qa-protected-branch-select',
2018-10-15 14:42:47 +05:30
filter: true, dropdown_class: "dropdown-menu-selectable git-revision-dropdown qa-protected-branch-dropdown", 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],
project_id: @project.try(:id) } }) do
2016-09-13 17:45:13 +05:30
%ul.dropdown-footer-list
2016-08-24 12:49:21 +05:30
%li
2018-03-17 18:26:18 +05:30
%button{ class: "dropdown-create-new-item-button js-dropdown-create-new-item", title: "New Protected Branch" }
2016-09-13 17:45:13 +05:30
Create wildcard
%code