-
-
Notifications
You must be signed in to change notification settings - Fork 166
prompt email recipient to use reply-all when there were multiple reci… #2868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -12,6 +12,11 @@ Feedback sent from: | |||||||||||||||
| % } | ||||||||||||||||
| <%== $emailableURL %> | ||||||||||||||||
|
|
||||||||||||||||
| % if ($c->stash->{numRecipients} > 1) { | ||||||||||||||||
|
|
||||||||||||||||
| <%= maketext('Message delivered to multiple recipients. Consider using reply-all.') =%> | ||||||||||||||||
|
Comment on lines
14
to
+17
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be
Suggested change
The reasoning for the switch from The rest is about spacing. The empty line before the conditional together with the empty line after it result in two empty lines in the text email. The Feedback sent from setID:
page url here
Message delivered to multiple recipients. Consider using reply-all.
Username (userId) wrote:With my changes it becomes Feedback sent from setID:
page url here
Message delivered to multiple recipients. Consider using reply-all.
Username (userId) wrote:Also, in the case that there is only one recipient so that this new message is not shown, then the empty line before and the emtpy line after both are in the output (the |
||||||||||||||||
| % } | ||||||||||||||||
|
|
||||||||||||||||
| % if ($feedback) { | ||||||||||||||||
| <%== $user->full_name %> (<%== $user->user_id %>) wrote: | ||||||||||||||||
|
|
||||||||||||||||
|
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be
Stash values are converted into variables when templates are compiled. The only time you need to be careful and actually get them from the stash is if the stash value might not be defined. In that case the variable won't exist and the template will fail to compile. In this case this stash value will always be defined.