2016-06-16 11:53:58 +00:00
|
|
|
- dropdown_toggle_text = @ref || @project.default_branch
|
2017-06-29 17:06:35 +00:00
|
|
|
= form_tag switch_project_refs_path(@project), method: :get, class: "project-refs-form" do
|
2012-09-16 16:07:57 +00:00
|
|
|
= hidden_field_tag :destination, destination
|
2012-09-17 17:07:17 +00:00
|
|
|
- if defined?(path)
|
2012-09-16 16:07:57 +00:00
|
|
|
= hidden_field_tag :path, path
|
2013-04-14 12:09:47 +00:00
|
|
|
- @options && @options.each do |key, value|
|
|
|
|
= hidden_field_tag key, value, id: nil
|
2016-06-07 13:40:21 +00:00
|
|
|
.dropdown
|
2018-04-11 03:18:03 +00:00
|
|
|
= dropdown_toggle dropdown_toggle_text, { toggle: "dropdown", selected: dropdown_toggle_text, ref: @ref, refs_url: refs_project_path(@project, sort: 'updated_desc'), field_name: 'ref', submit_form_on_click: true, visit: true }, { toggle_class: "js-project-refs-dropdown qa-branches-select" }
|
2018-05-08 16:16:35 +00:00
|
|
|
.dropdown-menu.dropdown-menu-selectable.git-revision-dropdown.dropdown-menu-paging.qa-branches-dropdown{ class: ("dropdown-menu-right" if local_assigns[:align_right]) }
|
2017-10-23 10:57:23 +00:00
|
|
|
.dropdown-page-one
|
|
|
|
= dropdown_title _("Switch branch/tag")
|
|
|
|
= dropdown_filter _("Search branches and tags")
|
|
|
|
= dropdown_content
|
|
|
|
= dropdown_loading
|