Commit b7f8631e authored by Robert Lyon's avatar Robert Lyon Committed by Cecilia Vela Gurovic
Browse files

Bug 1796583: Making delete assessment email message better



behatnotneeded

Change-Id: I68e5b0680f80e416d9961e0d6c5fe66b652b584d
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit c7a8a1b1)
parent d583d136
...@@ -27,7 +27,7 @@ $string['assessmentremoved'] = 'Peer assessment deleted'; ...@@ -27,7 +27,7 @@ $string['assessmentremoved'] = 'Peer assessment deleted';
// peer assessment notifications // peer assessment notifications
$string['deletednotificationsubject'] = 'Peer assessment on page "%s" deleted'; $string['deletednotificationsubject'] = 'Peer assessment on page "%s" deleted';
$string['deletedauthornotification'] = "Your peer assessment on page \"%s\" was deleted. You had written:\n%s"; $string['deletedauthornotification1'] = "Your peer assessor, %s, deleted their assessment on page \"%s\". They had written:\n%s";
$string['newassessmentnotificationsubject'] = 'New peer assessment on page "%s"'; $string['newassessmentnotificationsubject'] = 'New peer assessment on page "%s"';
$string['feedbacknotificationhtml'] = "<div style=\"padding: 0.5em 0; border-bottom: 1px solid #999;\"><strong>%s added a peer assessment on %s</strong><br>%s</div> $string['feedbacknotificationhtml'] = "<div style=\"padding: 0.5em 0; border-bottom: 1px solid #999;\"><strong>%s added a peer assessment on %s</strong><br>%s</div>
......
...@@ -782,9 +782,9 @@ function delete_assessment_submit(Pieform $form, $values) { ...@@ -782,9 +782,9 @@ function delete_assessment_submit(Pieform $form, $values) {
'args' => array($title), 'args' => array($title),
), ),
'message' => (object) array( 'message' => (object) array(
'key' => 'deletedauthornotification', 'key' => 'deletedauthornotification1',
'section' => 'artefact.peerassessment', 'section' => 'artefact.peerassessment',
'args' => array($title, html2text($assessment->get('description'))), 'args' => array(display_name($author), $title, html2text($assessment->get('description'))),
), ),
'urltext' => (object) array( 'urltext' => (object) array(
'key' => 'view', 'key' => 'view',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment