Commit 275db3c522200b68673c4ea6a16046b3582cda2f

Authored by Robert Speicher
1 parent 0887dda8

Fix paths in commits/_head

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
app/views/commits/_head.html.haml
1 %ul.nav.nav-tabs 1 %ul.nav.nav-tabs
2 %li= render partial: 'shared/ref_switcher', locals: {destination: 'commits'} 2 %li= render partial: 'shared/ref_switcher', locals: {destination: 'commits'}
3 - %li{class: "#{'active' if current_page?(project_commits_path(@project)) }"}  
4 - = link_to project_commits_path(@project) do 3 + %li{class: "#{'active' if current_controller?(:commit, :commits)}"}
  4 + = link_to project_commits_path(@project, @project.root_ref) do
5 Commits 5 Commits
6 %li{class: "#{'active' if current_controller?(:compare)}"} 6 %li{class: "#{'active' if current_controller?(:compare)}"}
7 = link_to project_compare_index_path(@project) do 7 = link_to project_compare_index_path(@project) do
@@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
16 Tags 16 Tags
17 %span.badge= @project.repo.tag_count 17 %span.badge= @project.repo.tag_count
18 18
19 - - if current_page?(project_commits_path(@project)) && current_user.private_token 19 + - if current_controller?(:commits) && current_user.private_token
20 %li.right 20 %li.right
21 %span.rss-icon 21 %span.rss-icon
22 = link_to project_commits_path(@project, @ref, {format: :atom, private_token: current_user.private_token}), title: "Feed" do 22 = link_to project_commits_path(@project, @ref, {format: :atom, private_token: current_user.private_token}), title: "Feed" do