Skip to content

Commit

Permalink
Merge pull request #887 from nathanvda/improve_tag_count
Browse files Browse the repository at this point in the history
Improve performance when handling large repo's
  • Loading branch information
dzaporozhets committed Jun 3, 2012
2 parents 6b042b1 + c4d4040 commit a35a129
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gem "stamp"
gem "kaminari" gem "kaminari"
gem "haml-rails" gem "haml-rails"
gem "jquery-rails" gem "jquery-rails"
gem "grit", :git => "https://github.com/gitlabhq/grit.git", :ref => "810e3c11787e9d84c5925a7edc3264db0f04bb49" gem "grit", :git => "https://github.com/gitlabhq/grit.git", :ref => "9536f306645f2d6b1f993ae02d3a29893ba8881f"
gem "gitolite", :git => "https://github.com/gitlabhq/gitolite-client.git", :ref => "9b715ca8bab6529f6c92204a25f84d12f25a6eb0" gem "gitolite", :git => "https://github.com/gitlabhq/gitolite-client.git", :ref => "9b715ca8bab6529f6c92204a25f84d12f25a6eb0"
gem "carrierwave" gem "carrierwave"
gem "six" gem "six"
Expand Down
4 changes: 2 additions & 2 deletions app/views/commits/_head.html.haml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
%li{:class => "#{branches_tab_class}"} %li{:class => "#{branches_tab_class}"}
= link_to project_repository_path(@project) do = link_to project_repository_path(@project) do
Branches Branches
%span.number= @project.repo.branches.count %span.number= @project.repo.branch_count


%li{:class => "#{'active' if current_page?(tags_project_repository_path(@project)) }"} %li{:class => "#{'active' if current_page?(tags_project_repository_path(@project)) }"}
= link_to tags_project_repository_path(@project) do = link_to tags_project_repository_path(@project) do
Tags Tags
%span.number= @project.repo.tags.count %span.number= @project.repo.tag_count




- if current_page?(project_commits_path(@project)) && current_user.private_token - if current_page?(project_commits_path(@project)) && current_user.private_token
Expand Down

0 comments on commit a35a129

Please sign in to comment.