Permalink
Browse files

actually disable all of the stats pages

  • Loading branch information...
1 parent 5602931 commit 26bc32fbba37087cf5a6c6a44a2c5da9d20c2c32 @qrush qrush committed Sep 17, 2012
Showing with 2 additions and 3 deletions.
  1. +1 −1 app/views/profiles/_rubygem.html.erb
  2. +0 −1 app/views/rubygems/show.html.erb
  3. +1 −1 config/routes.rb
@@ -4,7 +4,7 @@
<em><%= rubygem.versions.most_recent %></em>
</a>
<% unless Rails.env.recovery? %>
- <a href="<%= rubygem_stats_path(rubygem) %>" class="profile-downloads">
+ <a href="#" class="profile-downloads">
<div><%= t('download_count', :count => content_tag(:span, number_with_delimiter(rubygem.downloads))).html_safe %></div>
<div><%= t('stats.show.daily_downloads', :count => content_tag(:span, number_with_delimiter(rubygem.downloads_today))).html_safe %></div>
</a>
@@ -27,7 +27,6 @@
<%= documentation_link(@latest_version, @rubygem.linkset) %>
<%= subscribe_link(@rubygem) if @latest_version.indexed %>
<%= unsubscribe_link(@rubygem) %>
- <%= link_to t('.stats_header'), rubygem_stats_path(@rubygem), :id => "stats" if @latest_version.indexed %>
</div>
<% if @latest_version.indexed %>
View
@@ -105,7 +105,7 @@
constraints :rubygem_id => Patterns::ROUTE_PATTERN do
resources :versions, :only => :show do
- resource :stats, :only => :show, :constraints => RecoveryMode
+ #resource :stats, :only => :show, :constraints => RecoveryMode
end
end
end

0 comments on commit 26bc32f

Please sign in to comment.