summaryrefslogtreecommitdiff
path: root/app/views/shared/_ref_switcher.html.haml
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-09-16 12:07:57 -0400
committerRobert Speicher <rspeicher@gmail.com>2012-09-16 12:07:57 -0400
commit465e40d3a663944b5aacf3e53a63158a7812f219 (patch)
tree740d9fd85344a4fe5d2b19c38d196a5ecf05b975 /app/views/shared/_ref_switcher.html.haml
parent4247ccd3401b81f654f2203f4b71f0257fd9c569 (diff)
downloadgitlab-ce-465e40d3a663944b5aacf3e53a63158a7812f219.tar.gz
Extract ref switcher into a partial
Also moves onchange JS to projects.js.coffee
Diffstat (limited to 'app/views/shared/_ref_switcher.html.haml')
-rw-r--r--app/views/shared/_ref_switcher.html.haml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/shared/_ref_switcher.html.haml b/app/views/shared/_ref_switcher.html.haml
new file mode 100644
index 00000000000..e0c89522c11
--- /dev/null
+++ b/app/views/shared/_ref_switcher.html.haml
@@ -0,0 +1,5 @@
+= 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