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:
@@ -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 %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user