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

_dropdown.html.haml « protected_branches « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a9e27df5a87a0cfff07efc36a1fcaf5dbcb7dd2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
= f.hidden_field(:name)

= dropdown_tag('Select branch or create wildcard',
               options: { toggle_class: 'js-protected-branch-select js-filter-submit wide',
                          filter: true, dropdown_class: "dropdown-menu-selectable", placeholder: "Search protected branches",
                          footer_content: true,
                          data: { show_no: true, show_any: true, show_upcoming: true,
                                  selected: params[:protected_branch_name],
                                  project_id: @project.try(:id) } }) do

  %ul.dropdown-footer-list
    %li
      = link_to '#', title: "New Protected Branch", class: "create-new-protected-branch" do
        Create wildcard
        %code