Commit 3c2b3f3f56dc7a85451ca3ff0d3a91997219c81c
1 parent
e48a0b8e
Exists in
master
and in
4 other branches
Keep branch/tag when navigate from commits to tree
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/layouts/project.html.haml
@@ -28,7 +28,7 @@ | @@ -28,7 +28,7 @@ | ||
28 | 28 | ||
29 | - if @project.repo_exists? | 29 | - if @project.repo_exists? |
30 | = link_to "Repository", project_repository_path(@project), :class => repository_tab_class | 30 | = link_to "Repository", project_repository_path(@project), :class => repository_tab_class |
31 | - = link_to "Tree", tree_project_ref_path(@project, @project.root_ref), :class => tree_tab_class | 31 | + = link_to "Tree", tree_project_ref_path(@project, @ref || @project.root_ref), :class => tree_tab_class |
32 | = link_to "Commits", project_commits_path(@project), :class => (controller.controller_name == "commits") ? "current" : nil | 32 | = link_to "Commits", project_commits_path(@project), :class => (controller.controller_name == "commits") ? "current" : nil |
33 | = link_to "Network", graph_project_path(@project), :class => current_page?(:controller => "projects", :action => "graph", :id => @project) ? "current" : nil | 33 | = link_to "Network", graph_project_path(@project), :class => current_page?(:controller => "projects", :action => "graph", :id => @project) ? "current" : nil |
34 | = link_to project_issues_filter_path(@project), :class => (controller.controller_name == "issues") ? "current" : nil do | 34 | = link_to project_issues_filter_path(@project), :class => (controller.controller_name == "issues") ? "current" : nil do |