diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-10-02 18:42:39 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-10-02 18:56:57 -0400 |
commit | 38ca52f33b6a6824268f3dc92cf5ca13ad737c20 (patch) | |
tree | 9bbf9ad81d9e76486d73e9dc0b7ace42ea471fc6 | |
parent | dc53a4f73229c879e6fc4ce6a37c57520bb5288d (diff) | |
download | gitlab-ce-38ca52f33b6a6824268f3dc92cf5ca13ad737c20.tar.gz |
Use branches.length and tags.length instead of [whatever]_count
-rw-r--r-- | app/views/commits/_head.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/commits/_head.html.haml b/app/views/commits/_head.html.haml index 26ae32ed144..c001c2f70ce 100644 --- a/app/views/commits/_head.html.haml +++ b/app/views/commits/_head.html.haml @@ -9,12 +9,12 @@ = nav_link(html_options: {class: branches_tab_class}) do = link_to project_repository_path(@project) do Branches - %span.badge= @project.repo.branch_count + %span.badge= @project.branches.length = nav_link(controller: :repositories, action: :tags) do = link_to tags_project_repository_path(@project) do Tags - %span.badge= @project.repo.tag_count + %span.badge= @project.tags.length - if current_controller?(:commits) && current_user.private_token %li.right |