Merge pull request #4824 from nonamethanks/add-forum-link

Posts sidebar: add link to tag discussions in forums
This commit is contained in:
evazion
2021-06-24 03:58:29 -05:00
committed by GitHub

View File

@@ -13,6 +13,7 @@
<li><%= link_to "Random", random_posts_path(tags: params[:tags]), id: "random-post", "data-shortcut": "r", rel: "nofollow" %></li>
<% if post_set.normalized_query.has_single_tag? %>
<li><%= link_to "History", post_versions_path(search: { changed_tags: post_set.normalized_query.tags.first.name }), rel: "nofollow" %></li>
<li><%= link_to "Discussions", forum_posts_path(search: { linked_to: post_set.normalized_query.tags.first.name }), rel: "nofollow" %></li>
<% end %>
<li><%= link_to "Count", posts_counts_path(tags: params[:tags]), rel: "nofollow" %></li>
</ul>