diff --git a/templates/zerver/emails/digest.html b/templates/zerver/emails/digest.source.html similarity index 68% rename from templates/zerver/emails/digest.html rename to templates/zerver/emails/digest.source.html index b4674c5e39..a46465e1bf 100644 --- a/templates/zerver/emails/digest.html +++ b/templates/zerver/emails/digest.source.html @@ -8,15 +8,15 @@ {% if unread_pms %}

Missed private messages

You have some missed private messages. Here are some of them:

-
+
{% for recipient_block in unread_pms %} -
-
{{ recipient_block.header.html|safe }}
-
+
+
{{ recipient_block.header.html|safe }}
+
{% for sender_block in recipient_block.senders %} - {% if sender_block.sender %}
{{ sender_block.sender }}
{% endif %} + {% if sender_block.sender %}
{{ sender_block.sender }}
{% endif %} {% for message_block in sender_block.content %} -
+
{{ message_block.html|safe }}
{% endfor %} @@ -39,15 +39,15 @@

{% for convo in hot_conversations %} -
+
{% for recipient_block in convo.first_few_messages %} -
-
{{ recipient_block.header.html|safe }}
-
+
+
{{ recipient_block.header.html|safe }}
+
{% for sender_block in recipient_block.senders %} - {% if sender_block.sender %}
{{ sender_block.sender }}
{% endif %} + {% if sender_block.sender %}
{{ sender_block.sender }}
{% endif %} {% for message_block in sender_block.content %} -
+
{{ message_block.html|safe }}
{% endfor %} diff --git a/templates/zerver/emails/email.css b/templates/zerver/emails/email.css index ca00c57042..b156ab2a44 100644 --- a/templates/zerver/emails/email.css +++ b/templates/zerver/emails/email.css @@ -171,6 +171,77 @@ a.button:hover { z-index: 100; } +#private-messages { + width: 600px; + font-size: 12px; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + overflow-y: scroll; +} + +.recipient_block { + background-color: hsl(192, 20%, 95%); + border: 1px solid black; + margin-bottom: 4px; +} + +.recipient_header { + color: hsl(0, 0%, 100%); + background-color: hsl(0, 0%, 27%); + border-bottom: 1px solid black; + font-weight: bold; + padding: 2px; +} + +.message_content { + background-color: hsl(192, 20%, 95%); + margin-left: 1px; + margin-right: 2px; +} + +.message_sender { + font-weight: bold; + padding-top: 1px; +} + +.message_content_block { + padding-left: 6px; + font-weight: normal; +} + +#messages { + width: 600px; + font-size: 12px; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + overflow-y: scroll; +} + +.hot_convo_recipient_block { + border: 1px solid black; + margin-bottom: 4px; +} + +.hot_convo_recipient_header { + background-color: hsl(213, 100%, 81%); + border-bottom: 1px solid black; + font-weight: bold; + padding: 2px; +} + +.hot_convo_message_content { + margin-left: 1px; + margin-right: 2px; +} + +.hot_convo_message_sender { + font-weight: bold; + padding-top: 1px; +} + +.hot_convo_message_content_block { + padding-left: 6px; + font-weight: normal; +} + @media only screen and (max-width: 620px) { table[class=body] h1 { font-size: 28px !important; diff --git a/tools/inline-email-css b/tools/inline-email-css index 078fea0324..3f68371674 100755 --- a/tools/inline-email-css +++ b/tools/inline-email-css @@ -9,7 +9,7 @@ from cssutils.profiles import Profiles, properties, macros ZULIP_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../') if __name__ == "__main__": - escaped_jinja2_characters = [('%7B%7B%20', '{{ '), ('%20%7D%7D', ' }}')] + escaped_jinja2_characters = [('%7B%7B%20', '{{ '), ('%20%7D%7D', ' }}'), ('>', '>')] templates_to_inline = set() for f in os.listdir(os.path.join(ZULIP_PATH, 'templates', 'zerver', 'emails')): diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py index 1d590446e5..04dd2c260f 100644 --- a/tools/linter_lib/custom_check.py +++ b/tools/linter_lib/custom_check.py @@ -776,7 +776,6 @@ def build_custom_checkers(by_lang): # Old-style email templates need to use inline style # attributes; it should be possible to clean these up # when we convert these templates to use premailer. - 'templates/zerver/emails/digest.html', 'templates/zerver/emails/missed_message.html', 'templates/zerver/emails/email_base_messages.html', diff --git a/version.py b/version.py index 611749ef35..42c8dbf4e8 100644 --- a/version.py +++ b/version.py @@ -11,4 +11,4 @@ LATEST_RELEASE_ANNOUNCEMENT = "https://blog.zulip.org/2018/11/07/zulip-1-9-relea # Typically, adding a dependency only requires a minor version bump, and # removing a dependency requires a major version bump. -PROVISION_VERSION = '26.15' +PROVISION_VERSION = '26.16'