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 | 9 | = nav_link(html_options: {class: branches_tab_class}) do |
| 10 | 10 | = link_to project_repository_path(@project) do |
| 11 | 11 | Branches |
| 12 | - %span.badge= @project.repo.branch_count | |
| 12 | + %span.badge= @project.branches.length | |
| 13 | 13 | |
| 14 | 14 | = nav_link(controller: :repositories, action: :tags) do |
| 15 | 15 | = link_to tags_project_repository_path(@project) do |
| 16 | 16 | Tags |
| 17 | - %span.badge= @project.repo.tag_count | |
| 17 | + %span.badge= @project.tags.length | |
| 18 | 18 | |
| 19 | 19 | - if current_controller?(:commits) && current_user.private_token |
| 20 | 20 | %li.right | ... | ... |