Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

emails: Use macros for email tags in notify new login email.

Vishnu KS01a92abf12b3
diff --git a/templates/zerver/emails/notify_new_login.source.html b/templates/zerver/emails/notify_new_login.source.html
index ef205559677..40bd7726011 100644
--- a/templates/zerver/emails/notify_new_login.source.html
+++ b/templates/zerver/emails/notify_new_login.source.html
@@ -16,7 +16,7 @@
{% trans %}Organization: <a href="{{ realm_uri }}">{{ realm_uri }}</a>{% endtrans %}
</li>
<li>
- {% trans %}Email: <a href="mailto:{{ user_email }}">{{ user_email }}</a>{% endtrans %}
+ {% trans user_email=macros.email_tag(user_email) %}Email: {{ user_email }}{% endtrans %}
</li>
<li>
{% trans %}Time: {{ login_time }}{% endtrans %}
@@ -33,7 +33,7 @@
<p>{{ _("If this was you, great! There's nothing else you need to do.") }}</p>
<p>
- {% trans %}If you do not recognize this login, or think your account may have been compromised, please <a href="{{ realm_uri }}/accounts/password/reset/">reset your password</a> or contact us immediately at <a href="mailto:{{ support_email }}">{{ support_email }}</a>.{% endtrans %}
+ {% trans support_email=macros.email_tag(support_email) %}If you do not recognize this login, or think your account may have been compromised, please <a href="{{ realm_uri }}/accounts/password/reset/">reset your password</a> or contact us immediately at {{ support_email }}.{% endtrans %}
</p>
<p>