From 0aa05a116ff3b6fc4dbd0378289d43e998d6b745 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 18 Feb 2020 19:22:10 -0600 Subject: [PATCH] burs/index: add back forum post link. Add back forum post link removed in ff8bfee9e. --- app/views/bulk_update_requests/_listing.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/bulk_update_requests/_listing.html.erb b/app/views/bulk_update_requests/_listing.html.erb index b9a4f79b5..61d4a5e2a 100644 --- a/app/views/bulk_update_requests/_listing.html.erb +++ b/app/views/bulk_update_requests/_listing.html.erb @@ -2,7 +2,9 @@ <%= table_for bulk_update_requests, width: "100%" do |t| %> <% t.column "Request" do |request| %> - <% if request.forum_topic.present? %> + <% if request.forum_post.present? %> +

<%= link_to "Topic ##{request.forum_topic_id}: #{request.forum_topic.title}", request.forum_post %>

+ <% elsif request.forum_topic.present? %>

<%= link_to "Topic ##{request.forum_topic_id}: #{request.forum_topic.title}", request.forum_topic %>

<% end %>