Commit 3792d624b692752cdfa5c3adc990a6e5200f90b5
1 parent
cbea0af2
Exists in
master
and in
4 other branches
Use the faster alternative methods in grit to count tags and branches (which I a…
…dded). This is much faster in all cases, but especially on large repositories the difference should be obvious.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/views/commits/_head.html.haml
| ... | ... | @@ -13,12 +13,12 @@ |
| 13 | 13 | %li{:class => "#{branches_tab_class}"} |
| 14 | 14 | = link_to project_repository_path(@project) do |
| 15 | 15 | Branches |
| 16 | - %span.number= @project.repo.branches.count | |
| 16 | + %span.number= @project.repo.branch_count | |
| 17 | 17 | |
| 18 | 18 | %li{:class => "#{'active' if current_page?(tags_project_repository_path(@project)) }"} |
| 19 | 19 | = link_to tags_project_repository_path(@project) do |
| 20 | 20 | Tags |
| 21 | - %span.number= @project.repo.tags.count | |
| 21 | + %span.number= @project.repo.tag_count | |
| 22 | 22 | |
| 23 | 23 | |
| 24 | 24 | - if current_page?(project_commits_path(@project)) && current_user.private_token | ... | ... |