Commit 3c2b3f3f56dc7a85451ca3ff0d3a91997219c81c

Authored by Dmitriy Zaporozhets
1 parent e48a0b8e

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 28  
29 29 - if @project.repo_exists?
30 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 32 = link_to "Commits", project_commits_path(@project), :class => (controller.controller_name == "commits") ? "current" : nil
33 33 = link_to "Network", graph_project_path(@project), :class => current_page?(:controller => "projects", :action => "graph", :id => @project) ? "current" : nil
34 34 = link_to project_issues_filter_path(@project), :class => (controller.controller_name == "issues") ? "current" : nil do
... ...