mirror of https://github.com/zulip/zulip.git
emails: Improve "contact us" line in onboarding emails.
Several onboarding emails sent to new users/organizations used the same "contact us" language. Adds new macros for the "contact us" line for Zulip Cloud and self-hosted realms to eliminate repetition. The suitable macro for Zulip Cloud vs self-hosted organizations is decided conditionally, by checking corporate_enabled. Fixes #24260.
This commit is contained in:
parent
b366c37452
commit
dcea17eb44
|
@ -20,5 +20,11 @@
|
|||
{% endif %}
|
||||
<a class="button" href="{{ activate_url }}">{{ _('Complete registration') }}</a>
|
||||
</p>
|
||||
<p>{% trans support_email=macros.email_tag(support_email) %}Contact us any time at {{ support_email }} if you run into trouble, have any feedback, or just want to chat!{% endtrans %}</p>
|
||||
<p>
|
||||
{% if corporate_enabled %}
|
||||
{{macros.contact_us_zulip_cloud(support_email)}}
|
||||
{% else %}
|
||||
{{macros.contact_us_self_hosted(support_email)}}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endblock %}
|
||||
|
|
|
@ -53,7 +53,10 @@
|
|||
</p>
|
||||
|
||||
<p>
|
||||
{% trans support_email=macros.email_tag(support_email) %}Questions? Contact
|
||||
us any time at {{ support_email }}.{% endtrans %}
|
||||
{% if corporate_enabled %}
|
||||
{% trans %}Questions? <a href="{{ support_email }}">Contact us</a> — we'd love to help!{% endtrans %}
|
||||
{% else %}
|
||||
{{macros.contact_us_self_hosted(support_email)}}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endblock %}
|
||||
|
|
|
@ -16,6 +16,10 @@
|
|||
<a class="button" href="{{ activate_url }}">{{ _("Complete registration") }}</a>
|
||||
</p>
|
||||
<p>
|
||||
{% trans support_email=macros.email_tag(support_email) %}Contact us any time at {{ support_email }} if you run into trouble, have any feedback, or just want to chat!{% endtrans %}
|
||||
{% if corporate_enabled %}
|
||||
{{macros.contact_us_zulip_cloud(support_email)}}
|
||||
{% else %}
|
||||
{{macros.contact_us_self_hosted(support_email)}}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endblock %}
|
||||
|
|
|
@ -9,3 +9,11 @@
|
|||
{% macro link_tag(url, text) -%}
|
||||
<a href="{{ url }}">{{ text | default(url) }}</a>
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro contact_us_self_hosted(email) -%}
|
||||
{% trans %}If you have any questions, please contact this Zulip server's administrators at <a href="{{ email }}">{{ email }}</a>.{% endtrans %}
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro contact_us_zulip_cloud(email) -%}
|
||||
{% trans %}Do you have questions or feedback to share? <a href="{{ email }}">Contact us</a> — we'd love to help!{% endtrans %}
|
||||
{%- endmacro %}
|
||||
|
|
|
@ -16,5 +16,11 @@
|
|||
|
||||
<p>{% trans %}If the request was in error, you can take no action and this link will expire in 24 hours.{% endtrans %}</p>
|
||||
|
||||
<p>{% trans support_email=macros.email_tag(support_email) %}Contact us any time at {{ support_email }} if you run into trouble, have any feedback, or just want to chat!{% endtrans %}</p>
|
||||
<p>
|
||||
{% if corporate_enabled %}
|
||||
{{macros.contact_us_zulip_cloud(support_email)}}
|
||||
{% else %}
|
||||
{{macros.contact_us_self_hosted(support_email)}}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue