Use branches.length and tags.length instead of [whatever]_count

This commit is contained in:
Robert Speicher 2012-10-02 18:42:39 -04:00
parent dc53a4f732
commit 38ca52f33b

View file

@ -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