From ef695f1ec11ad4be1f1ed1e0f53b8b3df06a1b32 Mon Sep 17 00:00:00 2001 From: Type-kun Date: Wed, 15 Jun 2016 13:03:39 +0500 Subject: [PATCH] Prettify BUR details link a little (#2599) Also add the link when BUR fails. --- app/models/bulk_update_request.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/bulk_update_request.rb b/app/models/bulk_update_request.rb index 45c4f6f45..a6e7e5081 100644 --- a/app/models/bulk_update_request.rb +++ b/app/models/bulk_update_request.rb @@ -71,7 +71,7 @@ class BulkUpdateRequest < ActiveRecord::Base def update_topic_on_failure(x) if forum_topic_id - body = "Bulk update request ##{id} failed: #{x.to_s}" + body = "\"Bulk update request ##{id}\":/bulk_update_requests?search%5Bid%5D=#{id} failed: #{x.to_s}" ForumPost.create(:body => body, :topic_id => forum_topic_id) end end @@ -137,7 +137,7 @@ class BulkUpdateRequest < ActiveRecord::Base def update_forum_topic_for_approve if forum_topic forum_topic.posts.create( - :body => "\"The bulk update request ##{id} has been approved.\":/bulk_update_requests?search%5Bid%5D=#{id}" + :body => "The \"bulk update request ##{id}\":/bulk_update_requests?search%5Bid%5D=#{id} has been approved." ) end end @@ -145,7 +145,7 @@ class BulkUpdateRequest < ActiveRecord::Base def update_forum_topic_for_reject if forum_topic forum_topic.posts.create( - :body => "\"The bulk update request ##{id} has been rejected.\":/bulk_update_requests?search%5Bid%5D=#{id}" + :body => "The \"bulk update request ##{id}\":/bulk_update_requests?search%5Bid%5D=#{id} has been rejected." ) end end