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.

templates: Improve footer content on documentation pages.

Lauryn Menard569863ffa6cc
diff --git a/templates/zerver/documentation_main.html b/templates/zerver/documentation_main.html
index ba5d9f4a1cd..01294edd585 100644
--- a/templates/zerver/documentation_main.html
+++ b/templates/zerver/documentation_main.html
@@ -41,7 +41,15 @@
<div id="footer" class="documentation-footer">
<hr />
- <p>We're here to help! Email us at <a href="mailto:{{ support_email }}">{{ support_email }}</a> with questions, feedback, or feature requests.</p>
+ {% if corporate_enabled %}
+ {% if page_is_policy_center %}
+ <p>Please contact {{ support_email_html_tag }} with any questions about Zulip's policies.</p>
+ {% else %}
+ <p>Your feedback helps us make Zulip better for everyone! Please <a href="mailto:{{ support_email }}">contact us</a> with questions, suggestions, and feature requests.</p>
+ {% endif %}
+ {% else %}
+ <p>Don't see an answer to your question? <a href="mailto:{{ support_email }}">Contact this Zulip server's administrators</a> for support.</p>
+ {% endif %}
</div>
</div>
</div>
diff --git a/zerver/tests/test_middleware.py b/zerver/tests/test_middleware.py
index 93e3a56cd9e..3440a514f1a 100644
--- a/zerver/tests/test_middleware.py
+++ b/zerver/tests/test_middleware.py
@@ -123,8 +123,8 @@ class OpenGraphTest(ZulipTestCase):
"Logging out | Zulip help center",
# Ideally we'd do something better here
[
- "We're here to help! Email us at [email protected] with questions, feedback, or "
- + "feature requests."
+ "Your feedback helps us make Zulip better for everyone! Please contact us "
+ + "with questions, suggestions, and feature requests."
],
["Click on the gear"],
)
@@ -155,8 +155,8 @@ class OpenGraphTest(ZulipTestCase):
# Probably we should make this "Zulip Help Center"
"No such article. | Zulip help center",
[
- "No such article. | We're here to help!",
- "Email us at [email protected] with questions, feedback, or feature requests.",
+ "No such article.",
+ "Your feedback helps us make Zulip better for everyone! Please contact us",
],
[],
# Test that our open graph logic doesn't throw a 500