additional saved search fixes
This commit is contained in:
@@ -11,6 +11,8 @@ module PostSetPresenters
|
||||
def related_tags
|
||||
if post_set.is_pattern_search?
|
||||
pattern_tags
|
||||
elsif post_set.is_saved_search?
|
||||
SavedSearch.categories_for(CurrentUser.user).map {|x| "search:#{x}"}
|
||||
elsif post_set.is_tag_subscription?
|
||||
post_set.tag_subscription_tags
|
||||
elsif post_set.is_single_tag?
|
||||
@@ -59,6 +61,10 @@ module PostSetPresenters
|
||||
end
|
||||
|
||||
def tag_list_html(template, options = {})
|
||||
if post_set.is_saved_search?
|
||||
options[:name_only] = true
|
||||
end
|
||||
|
||||
tag_set_presenter.tag_list_html(template, options)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user