burs/index: link to forum topic instead of specific post.

Linking to the last post in the thread triggers a COUNT(*) to calculate
the last page.
This commit is contained in:
evazion
2020-02-16 19:52:14 -06:00
parent 5817af4014
commit ff8bfee9eb

View File

@@ -2,9 +2,7 @@
<%= table_for bulk_update_requests, width: "100%" do |t| %>
<% t.column "Request" do |request| %>
<% if request.forum_post.present? %>
<p><%= link_to "Topic ##{request.forum_topic_id}: #{request.forum_topic.title}", forum_topic_path(request.forum_topic_id, page: request.forum_post.forum_topic_page, anchor: "forum_post_#{request.forum_post_id}") %></p>
<% elsif request.forum_topic.present? %>
<% if request.forum_topic.present? %>
<p><%= link_to "Topic ##{request.forum_topic_id}: #{request.forum_topic.title}", request.forum_topic %></p>
<% end %>