Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

actually disable all of the stats pages

  • Loading branch information...
commit 26bc32fbba37087cf5a6c6a44a2c5da9d20c2c32 1 parent 5602931
Nick Quaranto qrush authored
2  app/views/profiles/_rubygem.html.erb
View
@@ -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>
1  app/views/rubygems/show.html.erb
View
@@ -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 %>
2  config/routes.rb
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
Please sign in to comment.
Something went wrong with that request. Please try again.