diff options
author | Phil Hughes <me@iamphill.com> | 2016-06-07 16:40:21 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-18 23:49:20 +0300 |
commit | deca5ef200a0b6d5d965214ad71d13e359b03e77 (patch) | |
tree | 111c00f2d6fe4f0ae91e4e2344e61eb28da1d07f /app/views/shared/_ref_switcher.html.haml | |
parent | 0aab84c76012c16061ffccf4473aaeab2c528c2a (diff) |
Refs dropdown is now loaded async
Diffstat (limited to 'app/views/shared/_ref_switcher.html.haml')
-rw-r--r-- | app/views/shared/_ref_switcher.html.haml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/shared/_ref_switcher.html.haml b/app/views/shared/_ref_switcher.html.haml index eb2e1919e19..a84e53ea642 100644 --- a/app/views/shared/_ref_switcher.html.haml +++ b/app/views/shared/_ref_switcher.html.haml @@ -1,7 +1,14 @@ = form_tag switch_namespace_project_refs_path(@project.namespace, @project), method: :get, class: "project-refs-form" do - = select_tag "ref", grouped_options_refs, class: "project-refs-select select2 select2-sm" = hidden_field_tag :destination, destination - if defined?(path) = hidden_field_tag :path, path - @options && @options.each do |key, value| = hidden_field_tag key, value, id: nil + .dropdown + = dropdown_toggle @ref || @project.default_branch, { toggle: "dropdown", selected: @ref || @project.default_branch, refs_url: refs_namespace_project_path(@project.namespace, @project) }, { toggle_class: "js-project-refs-dropdown" } + .dropdown-menu.dropdown-menu-selectable + = dropdown_title "Switch branch/tag" + = dropdown_filter "Search branches and tags" + = dropdown_content + = dropdown_loading + -# = select_tag "ref", grouped_options_refs, class: "project-refs-select select2 select2-sm" |