Commit 38ca52f33b6a6824268f3dc92cf5ca13ad737c20
1 parent
dc53a4f7
Exists in
master
and in
4 other branches
Use branches.length and tags.length instead of [whatever]_count
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/views/commits/_head.html.haml
| @@ -9,12 +9,12 @@ | @@ -9,12 +9,12 @@ | ||
| 9 | = nav_link(html_options: {class: branches_tab_class}) do | 9 | = nav_link(html_options: {class: branches_tab_class}) do |
| 10 | = link_to project_repository_path(@project) do | 10 | = link_to project_repository_path(@project) do |
| 11 | Branches | 11 | Branches |
| 12 | - %span.badge= @project.repo.branch_count | 12 | + %span.badge= @project.branches.length |
| 13 | 13 | ||
| 14 | = nav_link(controller: :repositories, action: :tags) do | 14 | = nav_link(controller: :repositories, action: :tags) do |
| 15 | = link_to tags_project_repository_path(@project) do | 15 | = link_to tags_project_repository_path(@project) do |
| 16 | Tags | 16 | Tags |
| 17 | - %span.badge= @project.repo.tag_count | 17 | + %span.badge= @project.tags.length |
| 18 | 18 | ||
| 19 | - if current_controller?(:commits) && current_user.private_token | 19 | - if current_controller?(:commits) && current_user.private_token |
| 20 | %li.right | 20 | %li.right |