diff --git a/app/models/tag.rb b/app/models/tag.rb index a291dece45..5f0809fe30 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -407,6 +407,10 @@ def self.graph_data(limit = 250) end end + def self.all_tags_by_popularity + Tag.all.order('count DESC').select { |tag| !(tag.name.include? ":") }.uniq(&:name).pluck(:name) + end + def subscription_graph(start = DateTime.now - 1.year, fin = DateTime.now) date_hash = {} week = start.to_date.step(fin.to_date, 7).count diff --git a/app/views/home/subscriptions.html.erb b/app/views/home/subscriptions.html.erb index 2e1df240e2..0f476e8365 100644 --- a/app/views/home/subscriptions.html.erb +++ b/app/views/home/subscriptions.html.erb @@ -42,7 +42,7 @@