Remove HTML for mailers from locale file, return to view files from which it came

Description

The general mailer layout (specifically, the footer that appears on emails), kudos mailer, and user invite increase mailer all have HTML in the locale file. It should be banished back to the view files.

To test:

  • As an admin, grant invitations to a user account whose email address you have access to, and ensure that the email looks normal. (Note: This cannot be done by going to https://test.archiveofourown.org/users/USERNAME/invitations –- doing that doesn’t send an email. You have to use the “Give invite codes to current users” option on https://test.archiveofourown.org/admin/invitations, or you have to update the site settings to allow users to request invitations, make a request as a user, and then grant that request as an admin.)

  • Give yourself kudos (either while logged out or logged in with another account) and ensure that the kudos email looks right.

Please make sure to check the footer in one of those emails.

Activity

Show:
redsummernight
December 18, 2019, 3:33 AM
Edited

Invitations granted email looks normal:

[AO3] New Invitations


Hi redsummernight!

We just wanted to let you know that you have 7 new invitations, which can be used to create new accounts at the Archive. You can invite a friend at your invitations page.

Cheers,
AO3

If you've received this message in error, please contact Support.

The Archive of Our Own is a fan-run and fan-supported archive that relies on your donations.

Lady Oscar
December 18, 2019, 3:50 AM

1) Requested invitations as LadyOscar and granted the request as an admin. The email I received has the usual footer:

If you've received this message in error, please contact Support.

The Archive of Our Own is a fan-run and fan-supported archive that relies on your donations.

The "contact Support" and "your donations" links work as expected.

2) As testy and logged out, gave kudos to a work by LadyOscar.

The email footer is the same as in 1) and the email looks normal.

Looks good!

redsummernight
December 18, 2019, 3:51 AM

Kudos email looks normal:

[AO3] You've got kudos!


testy left kudos on Here we go again.

testy left kudos on Here we go one more time.

If you've received this message in error, please contact Support.

The Archive of Our Own is a fan-run and fan-supported archive that relies on your donations.

DeployedToBeta

Assignee

Sarken

Reporter

Sarken

Roadmap

Internationalization

Priority

Medium

Affects versions

Fix versions

Components

FrontEnd

Difficulty

Easy

Required Access Level

Admin

Milestone

Internal 0.9
Configure