additional saved search fixes

This commit is contained in:
r888888888
2017-01-25 12:44:10 -08:00
parent 1207faa600
commit 8a93fdf18f
6 changed files with 32 additions and 7 deletions

View File

@@ -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