diff --git a/templates/zerver/emails/digest/digest_email.txt b/templates/zerver/emails/digest/digest_email.txt index 5098ab7b6e..6dc67a3308 100644 --- a/templates/zerver/emails/digest/digest_email.txt +++ b/templates/zerver/emails/digest/digest_email.txt @@ -1,4 +1,3 @@ -{% load app_filters %} {# Mail sent to a user who hasn't logged in for 24 hours. #} @@ -32,20 +31,20 @@ been gone: {% endif %} {% for message_block in sender_block.content %}{{ message_block.plain }} {% endfor %}{% endfor %} -{% if convo.count > 0 %}+ {{ convo.count }} more message{{ convo.count|pluralize }} by {{ convo.participants|display_list:4 }}.{% endif %} +{% if convo.count > 0 %}+ {{ convo.count }} more message{{ convo.count|pluralize }} by {{ convo.participants|display_list(4) }}.{% endif %} {% endfor %}{% endfor %} Catch up on the rest of these conversations: https://{{ external_host }}.{% endif %} {% if new_users and new_streams.plain %}** Group updates **{% elif new_users %}** New users **{% elif new_streams.plain %}** New streams **{% endif %} -{% if new_streams.plain %}{% if new_stream_count > 1 %}A new stream was{% else %}Some new streams were{% endif %} created: +{% if new_streams.plain %}{% if new_stream_count and new_stream_count > 1 %}A new stream was{% else %}Some new streams were{% endif %} created: - {{ new_streams.plain|display_list:4 }}. + {{ new_streams.plain|display_list(4) }}. Visit your Streams page to subscribe: https://{{ external_host }}/#subscriptions.{% endif %} -{% if new_users %}{% if new_streams.plain or unread_pms or hot_conversations %}And finally, please{% else %}Please{% endif %} welcome {{ new_users|display_list:4 }} to Zulip!{% endif %} +{% if new_users %}{% if new_streams.plain or unread_pms or hot_conversations %}And finally, please{% else %}Please{% endif %} welcome {{ new_users|display_list(4) }} to Zulip!{% endif %} Click here to log in to Zulip and catch up: https://{{ external_host }}. diff --git a/templates/zerver/emails/digest/digest_email_html.txt b/templates/zerver/emails/digest/digest_email_html.txt index 57bb3754c7..2eabade0b0 100644 --- a/templates/zerver/emails/digest/digest_email_html.txt +++ b/templates/zerver/emails/digest/digest_email_html.txt @@ -1,4 +1,3 @@ -{% load app_filters %} {# Mail sent to a user who hasn't logged in for 24 hours. #} @@ -56,7 +55,7 @@ Here are some of the hot conversations that have happened while you've been gone {% endfor %} - {% if convo.count > 0 %}
+ {{ convo.count }} more message{{ convo.count|pluralize }} by {{ convo.participants|display_list:4 }}.
{% endif %} + {% if convo.count > 0 %}+ {{ convo.count }} more message{{ convo.count|pluralize }} by {{ convo.participants|display_list(4) }}.
{% endif %} {% endfor %} {% endfor %} @@ -76,15 +75,15 @@ Here are some of the hot conversations that have happened while you've been gone {% endif %} {% if new_streams.html %} -{% if new_stream_count > 1 %}A new stream was{% else %}Some new streams were{% endif %} created:
+{% if new_stream_count and new_stream_count > 1 %}A new stream was{% else %}Some new streams were{% endif %} created:
-{{ new_streams.html|display_list:4|safe }}.
+{{ new_streams.html|display_list(4)|safe }}.
-Click on {% if new_stream_count > 1 %}a{% else %}the{% endif %} name to check out some of the traffic, or visit your Streams page to subscribe.
+Click on {% if new_stream_count and new_stream_count > 1 %}a{% else %}the{% endif %} name to check out some of the traffic, or visit your Streams page to subscribe.
{% endif %} {% if new_users %} -{% if new_streams.html or unread_pms or hot_conversations %}And finally, please{% else %}Please{% endif %} welcome {{ new_users|display_list:4 }} to Zulip!
+{% if new_streams.html or unread_pms or hot_conversations %}And finally, please{% else %}Please{% endif %} welcome {{ new_users|display_list(4) }} to Zulip!
{% endif %}