Strip whitespace from ALL the things.
This commit is contained in:
parent
f6dd8b0a4d
commit
716d7a737b
171 changed files with 807 additions and 807 deletions
|
@ -25,7 +25,7 @@ def send_email(recipient, subject, template_file, parameters):
|
|||
|
||||
return '<a href="%s">%s</a>' % (real_url, title)
|
||||
|
||||
parameters.update({
|
||||
parameters.update({
|
||||
'subject': subject,
|
||||
'app_logo': 'https://quay.io/static/img/quay-logo.png', # TODO: make this pull from config
|
||||
'app_url': app_url,
|
||||
|
@ -53,7 +53,7 @@ def send_email_changed(username, old_email, new_email):
|
|||
send_email(old_email, 'Account e-mail address changed', 'emailchanged', {
|
||||
'username': username,
|
||||
'new_email': new_email
|
||||
})
|
||||
})
|
||||
|
||||
def send_change_email(username, email, token):
|
||||
send_email(email, 'E-mail address change requested', 'changeemail', {
|
||||
|
@ -114,7 +114,7 @@ def send_subscription_change(change_description, customer_id, customer_email, qu
|
|||
Customer email: <a href="mailto:{2}">{2}</a><br>
|
||||
Quay user or org name: {3}<br>
|
||||
"""
|
||||
|
||||
|
||||
title = SUBSCRIPTION_CHANGE_TITLE.format(quay_username, change_description)
|
||||
msg = Message(title, recipients=['stripe@quay.io'])
|
||||
msg.html = SUBSCRIPTION_CHANGE.format(change_description, customer_id, customer_email,
|
||||
|
|
Reference in a new issue