mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
email: Move and rename digest_email templates.
This commit is contained in:
@@ -162,7 +162,7 @@ def check_html_templates(templates, all_dups):
|
|||||||
'templates/zerver/apps.html',
|
'templates/zerver/apps.html',
|
||||||
'templates/zerver/accounts_home.html',
|
'templates/zerver/accounts_home.html',
|
||||||
'templates/zerver/compose.html',
|
'templates/zerver/compose.html',
|
||||||
'templates/zerver/emails/digest/digest_email.html',
|
'templates/zerver/emails/digest.html',
|
||||||
'templates/zerver/emails/find_team/find_team_email.html',
|
'templates/zerver/emails/find_team/find_team_email.html',
|
||||||
'templates/zerver/emails/followup/day1.html',
|
'templates/zerver/emails/followup/day1.html',
|
||||||
'templates/zerver/emails/followup/day2.html',
|
'templates/zerver/emails/followup/day2.html',
|
||||||
|
|||||||
@@ -213,11 +213,11 @@ def handle_digest_email(user_profile_id, cutoff):
|
|||||||
user_profile, cutoff_date)
|
user_profile, cutoff_date)
|
||||||
template_payload["new_users"] = new_users
|
template_payload["new_users"] = new_users
|
||||||
|
|
||||||
subject = loader.render_to_string('zerver/emails/digest/digest_email.subject').strip()
|
subject = loader.render_to_string('zerver/emails/digest.subject').strip()
|
||||||
text_content = loader.render_to_string(
|
text_content = loader.render_to_string(
|
||||||
'zerver/emails/digest/digest_email.txt', template_payload)
|
'zerver/emails/digest.txt', template_payload)
|
||||||
html_content = loader.render_to_string(
|
html_content = loader.render_to_string(
|
||||||
'zerver/emails/digest/digest_email.html', template_payload)
|
'zerver/emails/digest.html', template_payload)
|
||||||
|
|
||||||
# We don't want to send emails containing almost no information.
|
# We don't want to send emails containing almost no information.
|
||||||
if enough_traffic(template_payload["unread_pms"],
|
if enough_traffic(template_payload["unread_pms"],
|
||||||
|
|||||||
Reference in New Issue
Block a user