fix branch/tag select
This commit is contained in:
parent
f0b86c5f1e
commit
bb35ef2f60
7 changed files with 29 additions and 6 deletions
|
@ -12,7 +12,7 @@
|
|||
\/
|
||||
%a{:href => "#"}= params[:path].split("/").join(" / ")
|
||||
|
||||
.right= render :partial => "projects/refs", :locals => { :destination => project_commits_path(@project) }
|
||||
.right= render :partial => "projects/refs", :locals => { :destination => :commits }
|
||||
|
||||
%div{:id => dom_id(@project)}
|
||||
#commits_list= render "commits"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
= form_tag destination, :method => :get, :class => "project-refs-form" do
|
||||
= form_tag switch_project_refs_path(@project), :method => :get, :class => "project-refs-form" do
|
||||
= select_tag "ref", grouped_options_refs, :onchange => "this.form.submit();", :class => "project-refs-select"
|
||||
= hidden_field_tag :destination, destination
|
||||
|
||||
:javascript
|
||||
$(function(){
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
\/
|
||||
= link_to truncate(part, :length => 40), tree_file_project_ref_path(@project, @ref, :path => part_path), :remote => :true
|
||||
|
||||
.right= render :partial => "projects/refs", :locals => { :destination => tree_project_ref_path(@project, @ref) }
|
||||
.right= render :partial => "projects/refs", :locals => { :destination => :tree }
|
||||
.clear
|
||||
|
||||
#tree-content-holder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue