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:
@@ -109,11 +109,11 @@ class DText
|
|||||||
end
|
end
|
||||||
|
|
||||||
if obj.is_approved?
|
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?
|
elsif obj.is_pending?
|
||||||
"The \"bulk update request ##{obj.id}\":/bulk_update_requests/#{obj.id} is pending approval.\n\n#{embedded_script}"
|
"The \"bulk update request ##{obj.id}\":/bulk_update_requests/#{obj.id} is pending approval.\n\n#{embedded_script}"
|
||||||
elsif obj.is_rejected?
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user