refactor(templates): Add more location data to emails #243
Conversation
| {{#if timestamp }}<span style="display:block;margin:2px 0;">{{ timestamp }}</span>{{/if}} | ||
|
|
||
|
|
||
| </p> |
vladikoff
Dec 21, 2016
Contributor
do we need the 2 line breaks here in these?
do we need the 2 line breaks here in these?
vbudhram
Dec 21, 2016
Author
Contributor
This is strange, these files are generated from grunt templates. I'll check to see what might be causing the extra breaks.
This is strange, these files are generated from grunt templates. I'll check to see what might be causing the extra breaks.
|
Fixes #189 |
| {{ device }} | ||
| {{#if location}}{{ location }}{{/if}} | ||
| {{#if ip}}{{t "IP address: %(ip)s" }}{{/if}} | ||
| {{#if timestamp}}{{ timestamp }}{{/if}} |
vladikoff
Dec 21, 2016
Contributor
let's not put the timestamp in the verify email because @ryanfeeley does not have that one in the template. Other 2 emails should have it though
let's not put the timestamp in the verify email because @ryanfeeley does not have that one in the template. Other 2 emails should have it though
| {{#if ip}}{{t "IP address: %(ip)s" }}{{/if}} | ||
| {{#if timestamp}}{{ timestamp }}{{/if}} | ||
|
|
||
| {{t "Verify email →"}} {{{link}}} |
vladikoff
Dec 21, 2016
Contributor
should this use an HTML right arrow → ?
should this use an HTML right arrow → ?
| @@ -35,7 +42,7 @@ <h1 style="font-family: sans-serif; font-weight: normal; margin: 0 0 24px 0; tex | |||
| <w:anchorlock/> | |||
| <center> | |||
| <![endif]--> | |||
| <a href="{{{link}}}" id="button-link" style="font-family:sans-serif; color: #fff; display: block; padding: 15px; text-decoration: none; width: 280px;">{{t "Activate now"}}</a> | |||
| <a href="{{{link}}}" id="button-link" style="font-family:sans-serif; color: #fff; display: block; padding: 15px; text-decoration: none; width: 280px;">{{t "Verify email →"}}</a> | |||
| <h1 style="font-family: sans-serif; font-weight: normal; margin: 0 0 24px 0; text-align: center;"><% block verify_title %>{{t "Ready, set sync"}}<% endblock %></h1> | ||
| <p class="primary" style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0 0 24px 0; text-align: center;"><% block verify_content %>{{t "Confirm you’ve received this email and we’ll help you install and sync Firefox on all your devices starting with:"}}<br/><br/> | ||
| <% include "./location/location.html" %> | ||
| <% endblock %></p> |
vladikoff
Dec 21, 2016
Contributor
the <p> tag seems not closed
the <p> tag seems not closed
| @@ -11,7 +11,7 @@ | |||
| <!--Logo--> | |||
| <tr style="page-break-before: always"> | |||
| <td align="center" id="firefox-logo" style="padding: 20px 0;"> | |||
| <img src="http://image.e.mozilla.org/lib/fe9915707361037e75/m/2/fxlogojg.gif" height="95" width="88" alt="" style="-ms-interpolation-mode: bicubic;" /> | |||
| <img src="http://v14d.com/g/choose_what_to_sync_devices2x.jpg" height="152" width="310" alt="" style="-ms-interpolation-mode: bicubic;" /> | |||
vladikoff
Dec 21, 2016
Contributor
let's not forget to update that ;D
let's not forget to update that ;D
vbudhram
Dec 21, 2016
Author
Contributor
Should this be updated before merge or could I file a follow up issue for it?
Should this be updated before merge or could I file a follow up issue for it?
|
@ryanfeeley Here are the rendered out updates to the emails. Am I missing anything? |
| <img src="http://image.e.mozilla.org/lib/fe9915707361037e75/m/2/fxlogojg.gif" height="95" width="88" alt="" style="-ms-interpolation-mode: bicubic;" /> | ||
| {{/if}} | ||
| {{#if sync}} | ||
| <img src="http://v14d.com/g/choose_what_to_sync_devices2x.jpg" height="152" width="310" alt="" style="-ms-interpolation-mode: bicubic;" /> |
vladikoff
Dec 21, 2016
Contributor
@vbudhram , @jbuck knows where the file should go. The file to upload would be https://github.com/mozilla/fxa-auth-mailer/issues/189#issuecomment-268599408
@vbudhram , @jbuck knows where the file should go. The file to upload would be https://github.com/mozilla/fxa-auth-mailer/issues/189#issuecomment-268599408
…word change, password reset
3114e16
to
50e80aa
|
@vladikoff Updated image and ran email on acid for new sync template, https://www.emailonacid.com/app/acidtest/display/summary/8tugyvPCXUR8ugpAaxuXcH4ZAfKjA6cDBPkdevhdhzQqC. Is there anything else I am missing, r? |
| return this.send({ | ||
| acceptLanguage: message.acceptLanguage, | ||
| email: message.email, | ||
| headers: headers, | ||
| subject: gettext('Verify your Firefox Account'), | ||
| subject: gettext(subject), |
vladikoff
Dec 23, 2016
Contributor
@vbudhram this gettext(subject) will not work for string extraction, the strings need to be written out as gettext('Stuff here') in the code
@vbudhram this gettext(subject) will not work for string extraction, the strings need to be written out as gettext('Stuff here') in the code
| <img src="http://image.e.mozilla.org/lib/fe9915707361037e75/m/2/fxlogojg.gif" height="95" width="88" alt="" style="-ms-interpolation-mode: bicubic;" /> | ||
| {{/if}} | ||
| {{#if sync}} | ||
| <img src="https://image.e.mozilla.org/lib/fe9915707361037e75/m/3/fxa_dec2016.jpeg" height="152" width="310" alt="" style="-ms-interpolation-mode: bicubic;" /> |
vladikoff
Dec 23, 2016
Contributor
yessss!
yessss!
| @@ -259,7 +259,7 @@ module.exports = function (log) { | |||
| log.trace({ op: 'mailer.verifyEmail', email: message.email, uid: message.uid }) | |||
|
|
|||
| var templateName = 'verifyEmail' | |||
| var subject = 'Verify your Firefox Account' | |||
| var subject = gettext('Verify your Firefox Account') | |||
vbudhram
Dec 23, 2016
Author
Contributor
👍
| 'unblockCodeEmail', | ||
| 'recoveryEmail', | ||
| 'verifyEmail', |
vladikoff
Dec 23, 2016
Contributor
from irc: no, same template, depends on service
from irc: no, same template, depends on service
|
New Templates are Good |



This PR adds adds a new verify account sync template. This does not change the verify account email for non-sync users. It also adds location data to
It also contains some slight text tweaks to the emails.
Fixes #189