gitlabhq/app/views/shared/_ref_switcher.html.haml
Robert Speicher 465e40d3a6 Extract ref switcher into a partial
Also moves onchange JS to projects.js.coffee
2012-09-16 12:07:57 -04:00

6 lines
279 B
Plaintext

= form_tag switch_project_refs_path(@project), method: :get, class: "project-refs-form" do
= select_tag "ref", grouped_options_refs, class: "project-refs-select chosen"
= hidden_field_tag :destination, destination
- if respond_to?(:path)
= hidden_field_tag :path, path