Merge pull request #887 from nathanvda/improve_tag_count

Improve performance when handling large repo's
This commit is contained in:
Dmitriy Zaporozhets 2012-06-03 08:05:54 -07:00
commit a35a12980e
2 changed files with 3 additions and 3 deletions

View file

@ -13,12 +13,12 @@
%li{:class => "#{branches_tab_class}"}
= link_to project_repository_path(@project) do
Branches
%span.number= @project.repo.branches.count
%span.number= @project.repo.branch_count
%li{:class => "#{'active' if current_page?(tags_project_repository_path(@project)) }"}
= link_to tags_project_repository_path(@project) do
Tags
%span.number= @project.repo.tags.count
%span.number= @project.repo.tag_count
- if current_page?(project_commits_path(@project)) && current_user.private_token