mirror of https://github.com/zulip/zulip.git
emails: Show preheader block only if preheader is present.
This commit is contained in:
parent
ff6dab6883
commit
f32382f7b7
|
@ -4,6 +4,7 @@
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
<title>Zulip</title>
|
<title>Zulip</title>
|
||||||
</head>
|
</head>
|
||||||
|
{% if has_preheader %}
|
||||||
<span style="display:none !important;
|
<span style="display:none !important;
|
||||||
visibility:hidden;
|
visibility:hidden;
|
||||||
color:transparent;
|
color:transparent;
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
overflow:hidden;">
|
overflow:hidden;">
|
||||||
{% block preheader %}{% endblock %}
|
{% block preheader %}{% endblock %}
|
||||||
</span>
|
</span>
|
||||||
|
{% endif %}
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
{% block manage_preferences %}{% endblock %}
|
{% block manage_preferences %}{% endblock %}
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -26,4 +26,4 @@ LATEST_RELEASE_ANNOUNCEMENT = "https://blog.zulip.org/2019/03/01/zulip-2-0-relea
|
||||||
# historical commits sharing the same major version, in which case a
|
# historical commits sharing the same major version, in which case a
|
||||||
# minor version bump suffices.
|
# minor version bump suffices.
|
||||||
|
|
||||||
PROVISION_VERSION = '49.0'
|
PROVISION_VERSION = '49.1'
|
||||||
|
|
|
@ -202,6 +202,8 @@ def handle_digest_email(user_profile_id: int, cutoff: float,
|
||||||
context["new_streams"] = new_streams
|
context["new_streams"] = new_streams
|
||||||
context["new_streams_count"] = new_streams_count
|
context["new_streams_count"] = new_streams_count
|
||||||
|
|
||||||
|
# TODO: Set has_preheader if we want to include a preheader.
|
||||||
|
|
||||||
if render_to_web:
|
if render_to_web:
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue