templates: Fix filename ending with .html.txt.

Fixes a part of #3136.
This commit is contained in:
Rohith Asrk 2017-01-22 12:14:13 +05:30 committed by Tim Abbott
parent 00d48bff7d
commit 9088c46e4c
3 changed files with 8 additions and 5 deletions

View File

@ -38,8 +38,10 @@ While you were away you received {{ message_count }} new message{{ message_count
<p>Please do not reply to this automated message. To respond to the missed messages you have received, please log on to Zulip and send your replies there.</p>
{% endif %}
<p>Cheers,
<br>
The Zulip Team</p>
<p>
Cheers,
<br></br>
The Zulip Team
</p>
<p><a href="{{ realm_uri }}/#settings">Manage email preferences</a> | <a href="{{ unsubscribe_link }}">Unsubscribe from missed message emails</a></p>

View File

@ -65,6 +65,7 @@ def check_html_templates(templates, modified_only, all_dups):
'api-example-tabs',
'errors',
'email',
'messages',
'registration',
'pw_strength',
'id_password',

View File

@ -280,7 +280,7 @@ def do_send_missedmessage_events_reply_in_zulip(user_profile, missed_messages, m
from_email = '"%s" <%s>' % (sender_str, sender.email)
text_content = loader.render_to_string('zerver/missed_message_email.txt', template_payload)
html_content = loader.render_to_string('zerver/missed_message_email_html.txt', template_payload)
html_content = loader.render_to_string('zerver/missed_message_email.html', template_payload)
msg = EmailMultiAlternatives(subject, text_content, from_email, [user_profile.email],
headers = headers)