#944 fix branches link

This commit is contained in:
Alexander Machehin 2013-02-22 01:22:41 +06:00
parent 9a663e1530
commit 151c719a0c
1 changed files with 2 additions and 2 deletions

View File

@ -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 #description-top
-if @commit -if @commit
%ul.nav.zip %ul.nav.zip
@ -34,7 +34,7 @@
%li{:class => ('selected' if act == :index && contr == :commits )} %li{:class => ('selected' if act == :index && contr == :commits )}
= link_to t('project_menu.commits'), commits_path(project, treeish) = link_to t('project_menu.commits'), commits_path(project, treeish)
%li{:class => ('selected' if act == :branches && contr == :trees )} %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 )} %li.tags{:class => ('selected' if act == :tags && contr == :trees )}
= link_to t('project_menu.tags', :count => project.repo.tags.count), tags_path(project) = link_to t('project_menu.tags', :count => project.repo.tags.count), tags_path(project)
.both .both