Skip to content

Commit

Permalink
change introduction to feedback emails
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Jordan committed Dec 18, 2024
1 parent 7e386f9 commit fafb1d9
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lib/WeBWorK/ContentGenerator/Feedback.pm
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,13 @@ sub initialize ($c) {

my $systemURL = $c->url_for('root')->to_abs;

my $msg = qq/This message was automatically generated by the WeBWorK
system at $systemURL, in response to a request from $remote_host:$remote_port.
Click this link to see the page from which the user sent feedback:
$emailableURL
/;
my $msg =
sprintf("This message was generated by WeBWorK at\n%s\nin response to a request from %s (%s) at\n%s\n\n",
$systemURL, $user->full_name, $user->user_id, "$remote_host:$remote_port");
$msg .= "To visit the page from which the user sent feedback, go to:\n$emailableURL\n\n";

if ($feedback) {
$msg .= qq/***** The feedback message: *****\n\n\n$feedback\n\n\n/;
$msg .= sprintf("%s (%s) wrote:\n\n\n%s\n\n\n", $user->full_name, $user->user_id, $feedback);
}
if ($problem and $verbosity >= 1) {
$msg .=
Expand Down

0 comments on commit fafb1d9

Please sign in to comment.