mirror of
https://github.com/discourse/discourse.git
synced 2025-08-21 19:11:18 +08:00
REFACTOR: Fixes poor class hierarchy for listing topics
- Upgrades Ember to latest - Fixes a bunch of bugs with page titles and missing "active" states
This commit is contained in:
parent
86214989f5
commit
4981525047
178 changed files with 8441 additions and 4573 deletions
|
@ -31,11 +31,11 @@ module Discourse
|
|||
class CSRF < Exception; end
|
||||
|
||||
def self.filters
|
||||
@filters ||= [:latest, :hot, :unread, :new, :starred, :read, :posted]
|
||||
@filters ||= [:latest, :unread, :new, :starred, :read, :posted]
|
||||
end
|
||||
|
||||
def self.anonymous_filters
|
||||
@anonymous_filters ||= [:latest, :hot]
|
||||
@anonymous_filters ||= [:latest]
|
||||
end
|
||||
|
||||
def self.logged_in_filters
|
||||
|
@ -43,11 +43,11 @@ module Discourse
|
|||
end
|
||||
|
||||
def self.top_menu_items
|
||||
@top_menu_items ||= Discourse.filters.concat([:category, :categories, :top])
|
||||
@top_menu_items ||= Discourse.filters + [:category, :categories, :top]
|
||||
end
|
||||
|
||||
def self.anonymous_top_menu_items
|
||||
@anonymous_top_menu_items ||= Discourse.anonymous_filters.concat([:category, :categories, :top])
|
||||
@anonymous_top_menu_items ||= Discourse.anonymous_filters + [:category, :categories, :top]
|
||||
end
|
||||
|
||||
def self.activate_plugins!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue