* Move various search parser helper methods (`has_metatag?`, `is_single_tag?` et al) from PostSets and the Tag model to PostQueryBuilder. * Fix various minor bugs stemming from trying to check if a search query contains certain metatags using regexes or other adhoc techniques.
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
<section id="related-box">
|
|
<h1>Related</h1>
|
|
<ul id="related-list">
|
|
<% if discover_mode? %>
|
|
<li id="secondary-links-posts-hot"><%= link_to "Hot", posts_path(:tags => "order:rank") %></li>
|
|
<li id="secondary-links-posts-popular"><%= link_to "Popular", popular_explore_posts_path %></li>
|
|
<li id="secondary-links-posts-curated"><%= link_to "Curated", curated_explore_posts_path %></li>
|
|
<% if PopularSearchService.enabled? %>
|
|
<li><%= link_to "Searches", searches_explore_posts_path %></li>
|
|
<% end %>
|
|
<% if PostViewCountService.enabled? %>
|
|
<li><%= link_to "Viewed", viewed_explore_posts_path %></li>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<li><%= link_to "Deleted", posts_path(tags: "#{params[:tags]} status:deleted") %></li>
|
|
<li><%= link_to "Random", random_posts_path(tags: params[:tags]), id: "random-post", "data-shortcut": "r" %></li>
|
|
<% if post_set.query.is_simple_tag? %>
|
|
<li><%= link_to "History", post_versions_path(search: { changed_tags: params[:tags] }) %></li>
|
|
<% end %>
|
|
<li><%= link_to "Count", posts_counts_path(:tags => params[:tags]) %></li>
|
|
</ul>
|
|
</section>
|