Back to Zulip

Digest

templates/zerver/emails/digest.html

12.02.2 KB
Original Source

{% extends "zerver/emails/email_base_messages.html" %} {% block content %} {% if show_message_content %} {% if hot_conversations %} {% for convo in hot_conversations %}

{% with recipient_block=convo.first_few_messages %}

{{ recipient_block.header.html|safe }}

{% for sender_block in recipient_block.senders %} {% for message_block in sender_block.content %} {{ message_block.html|safe }} {% endfor %} {% endfor %}

{% if convo.count > 0 %}

  • {{ convo.count }} more message{{ convo.count|pluralize }} by {{ convo.participants|display_list(4) }}.

{% endif %} {% endwith %} {% endfor %} {% endif %} {% if new_channels.html %}

{% trans %}New channels{% endtrans %}

{{ new_channels.html|display_list(1000)|safe }}.

{% endif %} {% else %}

{% if new_messages_count > 0 and new_streams_count > 0 %} {% trans %}You have {{ new_messages_count }} new messages, and there are {{ new_streams_count }} new channels in {{ realm_name }}.{% endtrans %} {% elif new_messages_count > 0 and new_streams_count == 0 %} {% trans %}You have {{ new_messages_count }} new messages in {{ realm_name }}.{% endtrans %} {% else %} {% trans %}There are {{ new_streams_count }} new channels in {{ realm_name }}.{% endtrans %} {% endif %}

{% if message_content_disabled_by_realm %} {% trans help_url=realm_url + "/help/hide-message-content-in-emails" %}This email does not include message content because your organization hides message content in email notifications.{% endtrans %} {% elif message_content_disabled_by_user %} {% trans help_url=realm_url + "/help/email-notifications#hide-message-content" %}This email does not include message content because you have chosen to hide message content in email notifications.{% endtrans %} {% endif %}

{% endif %}

{% trans %}Log in to Zulip to catch up.{% endtrans %}

{% endblock %} {% block manage_preferences %}

{% trans %}Manage email preferences{% endtrans %} | {% trans %}Unsubscribe from digest emails{% endtrans %}

{% endblock %}