summaryrefslogtreecommitdiff
path: root/app/views/projects/show.html.haml
diff options
context:
space:
mode:
authorPaco Guzman <pacoguzmanp@gmail.com>2016-06-16 16:07:07 +0200
committerPaco Guzman <pacoguzmanp@gmail.com>2016-06-16 17:14:35 +0200
commit5d33af5ee5d13ca35669d7277b6cdd6357e0bca6 (patch)
tree7d9f4405be7bbb547b702d87932f5b9b879aa354 /app/views/projects/show.html.haml
parentdb66312cdb40c4d87dbf0d99da0fd2316676f7c7 (diff)
downloadgitlab-ce-5d33af5ee5d13ca35669d7277b6cdd6357e0bca6.tar.gz
Use Git cached counters on project show page18709-use-specific-git-cached-counters
Besides when building the repository cache we cache those git counters too
Diffstat (limited to 'app/views/projects/show.html.haml')
-rw-r--r--app/views/projects/show.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index 4afa902b4eb..e9ca46a74bf 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -23,10 +23,10 @@
#{'Commit'.pluralize(@project.commit_count)} (#{number_with_delimiter(@project.commit_count)})
%li
= link_to namespace_project_branches_path(@project.namespace, @project) do
- #{'Branch'.pluralize(@repository.branch_names.count)} (#{number_with_delimiter(@repository.branch_names.count)})
+ #{'Branch'.pluralize(@repository.branch_count)} (#{number_with_delimiter(@repository.branch_count)})
%li
= link_to namespace_project_tags_path(@project.namespace, @project) do
- #{'Tag'.pluralize(@repository.tag_names.count)} (#{number_with_delimiter(@repository.tag_names.count)})
+ #{'Tag'.pluralize(@repository.tag_count)} (#{number_with_delimiter(@repository.tag_count)})
- if default_project_view != 'readme' && @repository.readme
%li