Extract ref switcher into a partial
Also moves onchange JS to projects.js.coffee
This commit is contained in:
parent
4247ccd340
commit
465e40d3a6
4 changed files with 12 additions and 11 deletions
5
app/views/shared/_ref_switcher.html.haml
Normal file
5
app/views/shared/_ref_switcher.html.haml
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue