dtext: link to active/rejected BURs in forum posts.

Make "The bulk update request #XXX is active." link to the BUR.
This commit is contained in:
evazion
2020-12-01 19:30:35 -06:00
parent b9dda5bd21
commit 33c9d34927

View File

@@ -109,11 +109,11 @@ class DText
end
if obj.is_approved?
"The bulk update request ##{obj.id} is active.\n\n#{embedded_script}"
"The \"bulk update request ##{obj.id}\":/bulk_update_requests/#{obj.id} is active.\n\n#{embedded_script}"
elsif obj.is_pending?
"The \"bulk update request ##{obj.id}\":/bulk_update_requests/#{obj.id} is pending approval.\n\n#{embedded_script}"
elsif obj.is_rejected?
"The bulk update request ##{obj.id} has been rejected.\n\n#{embedded_script}"
"The \"bulk update request ##{obj.id}\":/bulk_update_requests/#{obj.id} has been rejected.\n\n#{embedded_script}"
end
end
end