From 151c719a0c34b9e386841d7074601ad46903b3e7 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Fri, 22 Feb 2013 01:22:41 +0600 Subject: [PATCH] #944 fix branches link --- app/views/projects/base/_repo_block.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/projects/base/_repo_block.html.haml b/app/views/projects/base/_repo_block.html.haml index 20054aa40..9f18f6222 100644 --- a/app/views/projects/base/_repo_block.html.haml +++ b/app/views/projects/base/_repo_block.html.haml @@ -1,4 +1,4 @@ -- act = action_name.to_sym; contr = controller_name.to_sym; treeish = project.default_head(params[:treeish]) +- act = action_name.to_sym; contr = controller_name.to_sym; treeish = project.default_head(params[:treeish]); branch = @branch.try(:name) || project.default_head #description-top -if @commit %ul.nav.zip @@ -34,7 +34,7 @@ %li{:class => ('selected' if act == :index && contr == :commits )} = link_to t('project_menu.commits'), commits_path(project, treeish) %li{:class => ('selected' if act == :branches && contr == :trees )} - = link_to t('project_menu.branches', :count => project.repo.branches.count), branches_path(project, treeish) + = link_to t('project_menu.branches', :count => project.repo.branches.count), branches_path(project, branch) %li.tags{:class => ('selected' if act == :tags && contr == :trees )} = link_to t('project_menu.tags', :count => project.repo.tags.count), tags_path(project) .both