related tags: eliminate favorite_tags cookie (#3955).

This commit is contained in:
evazion
2018-10-12 21:18:15 -05:00
parent 4e2944ee06
commit ae52b487e8
5 changed files with 9 additions and 15 deletions

View File

@@ -3,7 +3,7 @@
<div id="related-tags" class="related-tags">
<% if local_assigns[:related_tags] %>
<%= render "tag_column", tags: cookies[:recent_tags].to_s.split, title: "Recent" %>
<%= render "tag_column", tags: cookies[:favorite_tags].to_s.split, title: "Frequent" %>
<%= render "tag_column", tags: related_tags.favorite_tags, title: "Frequent" %>
<%= render "tag_column", tags: related_tags.tags, class: "general-related-tags-column", title: related_tags.pretty_name %>
<%= render "tag_column", tags: related_tags.translated_tags, title: "Translated Tags" %>
<%= render "tag_column", tags: related_tags.wiki_page_tags, class: "wiki-related-tags-column", title: link_to("wiki:#{related_tags.pretty_name}", show_or_new_wiki_pages_path(title: related_tags.query)) %>