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

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

= dropdown_tag('Select tag or create wildcard',
               options: { toggle_class: 'js-protected-tag-select js-filter-submit wide monospace',
                          filter: true, dropdown_class: "dropdown-menu-selectable capitalize-header git-revision-dropdown", placeholder: "Search protected tags",
                          footer_content: true,
                          data: { show_no: true, show_any: true, show_upcoming: true,
                                  selected: params[:protected_tag_name],
                                  project_id: @project.try(:id), qa_selector: 'tags_dropdown' } }) do

  %ul.dropdown-footer-list
    %li
      %button{ class: "dropdown-create-new-item-button js-dropdown-create-new-item", title: "New Protected Tag" }
        Create wildcard
        %code