FEATURE: add support for top filter in tag page. (#10281)

Currently, tag pages only have the `latest` filter.
This commit is contained in:
Vinoth Kannan
2020-07-22 19:26:36 +05:30
committed by GitHub
parent db4e310376
commit 0884d570b1
5 changed files with 43 additions and 20 deletions

View File

@ -186,7 +186,7 @@ module Discourse
class ScssError < StandardError; end
def self.filters
@filters ||= [:latest, :unread, :new, :read, :posted, :bookmarks]
@filters ||= [:latest, :unread, :new, :top, :read, :posted, :bookmarks]
end
def self.anonymous_filters
@ -194,7 +194,7 @@ module Discourse
end
def self.top_menu_items
@top_menu_items ||= Discourse.filters + [:categories, :top]
@top_menu_items ||= Discourse.filters + [:categories]
end
def self.anonymous_top_menu_items