diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index c390223811f..884b4793e63 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -27,11 +27,23 @@ class ListController < ApplicationController # anonymous filters Discourse.anonymous_filters, Discourse.anonymous_filters.map { |f| "#{f}_feed".to_sym }, - # categories - @@categories, - # top + # anonymous categorized filters + Discourse.anonymous_filters.map { |f| "category_#{f}".to_sym }, + Discourse.anonymous_filters.map { |f| "category_none_#{f}".to_sym }, + Discourse.anonymous_filters.map { |f| "parent_category_category_#{f}".to_sym }, + Discourse.anonymous_filters.map { |f| "parent_category_category_none_#{f}".to_sym }, + # category feeds + :category_feed, + # top summaries :top, - TopTopic.periods.map { |p| "top_#{p}".to_sym } + :category_top, + :category_none_top, + :parent_category_category_top, + # top pages (ie. with a period) + TopTopic.periods.map { |p| "top_#{p}".to_sym }, + TopTopic.periods.map { |p| "category_top_#{p}".to_sym }, + TopTopic.periods.map { |p| "category_none_top_#{p}".to_sym }, + TopTopic.periods.map { |p| "parent_category_category_top_#{p}".to_sym }, ].flatten # Create our filters