mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FEATURE: suppress categories from the homepage
This commit is contained in:
parent
a76d1079b2
commit
a501947d67
12 changed files with 116 additions and 135 deletions
|
@ -64,18 +64,10 @@ module Discourse
|
|||
@filters ||= [:latest, :unread, :new, :read, :posted, :bookmarks]
|
||||
end
|
||||
|
||||
def self.feed_filters
|
||||
@feed_filters ||= [:latest]
|
||||
end
|
||||
|
||||
def self.anonymous_filters
|
||||
@anonymous_filters ||= [:latest, :top, :categories]
|
||||
end
|
||||
|
||||
def self.logged_in_filters
|
||||
@logged_in_filters ||= Discourse.filters - Discourse.anonymous_filters
|
||||
end
|
||||
|
||||
def self.top_menu_items
|
||||
@top_menu_items ||= Discourse.filters + [:category, :categories, :top]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue