Commit 687290a00d71540ae809ae9ef172771ce7c46778
1 parent
287c3c16
Exists in
master
and in
4 other branches
fixed brach switch
Showing
3 changed files
with
3 additions
and
3 deletions
Show diff stats
app/views/commits/index.html.haml
@@ -12,7 +12,7 @@ | @@ -12,7 +12,7 @@ | ||
12 | \/ | 12 | \/ |
13 | %a{:href => "#"}= params[:path].split("/").join(" / ") | 13 | %a{:href => "#"}= params[:path].split("/").join(" / ") |
14 | 14 | ||
15 | -.right= render "projects/refs" | 15 | +.right= render :partial => "projects/refs", :locals => { :destination => project_commits_path(@project) } |
16 | 16 | ||
17 | %div{:id => dom_id(@project)} | 17 | %div{:id => dom_id(@project)} |
18 | = render "commits" | 18 | = render "commits" |
app/views/projects/_refs.html.haml
1 | -= form_tag project_commits_path(@project), :method => :get, :class => "project-refs-form" do | 1 | += form_tag destination, :method => :get, :class => "project-refs-form" do |
2 | = select_tag "ref", grouped_options_refs, :onchange => "this.form.submit();", :class => "project-refs-select" | 2 | = select_tag "ref", grouped_options_refs, :onchange => "this.form.submit();", :class => "project-refs-select" |
3 | 3 | ||
4 | 4 |
app/views/projects/_tree.html.haml
@@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
17 | \/ | 17 | \/ |
18 | = link_to truncate(part, :length => 40), tree_file_project_path(@project, :path => part_path, :commit_id => @commit.try(:id), :branch => @branch, :tag => @tag), :remote => :true | 18 | = link_to truncate(part, :length => 40), tree_file_project_path(@project, :path => part_path, :commit_id => @commit.try(:id), :branch => @branch, :tag => @tag), :remote => :true |
19 | | 19 | |
20 | - .right= render "projects/refs" | 20 | + .right= render :partial => "projects/refs", :locals => { :destination => tree_project_path(@project) } |
21 | .clear | 21 | .clear |
22 | 22 | ||
23 | #tree-content-holder | 23 | #tree-content-holder |