Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
Footer: Eliminate unnecessary construction of raw HTML.
Anders Kaseorg1afa68594a12
diff --git a/starlight_help/src/components/Footer.astro b/starlight_help/src/components/Footer.astroindex db26b1cfc27..e08f427b4bb 100644--- a/starlight_help/src/components/Footer.astro+++ b/starlight_help/src/components/Footer.astro@@ -1,15 +1,24 @@---import {CORPORATE_ENABLED, SUPPORT_EMAIL} from "astro:env/client";--let footer_html = `<p>Don't see an answer to your question? <a href="mailto:${SUPPORT_EMAIL}">Contact this Zulip server's administrators</a> for support.</p>`;-if (CORPORATE_ENABLED) {- footer_html = `<p>Your feedback helps us make Zulip better for everyone! Please <a href="/help/contact-support">contact us</a> with questions, suggestions, and feature requests.</p>`;-}---<footer class="sl-flex"><hr />- <Fragment set:html={footer_html} />+ {+ CORPORATE_ENABLED ? (+ <p>+ Your feedback helps us make Zulip better for everyone! Please{" "}+ <a href="/help/contact-support">contact us</a> with questions, suggestions, and+ feature requests.+ </p>+ ) : (+ <p>+ Don't see an answer to your question?{" "}+ <a href={`mailto:${SUPPORT_EMAIL}`}>Contact this Zulip server's administrators</a>{" "}+ for support.+ </p>+ )+ }</footer><style>