diff --git a/files/helpers/jinja2.py b/files/helpers/jinja2.py index 92251befe..3903e7e82 100644 --- a/files/helpers/jinja2.py +++ b/files/helpers/jinja2.py @@ -68,4 +68,4 @@ def inject_constants(): "CASINO_ENABLED":CASINO_ENABLED, "GUMROAD_LINK":GUMROAD_LINK, "DEFAULT_THEME":DEFAULT_THEME, "DESCRIPTION":DESCRIPTION, "has_sidebar":has_sidebar, "has_logo":has_logo, "has_app":has_app, - "FP":FP, "NOTIF_MODACTION_JL_MIN":NOTIF_MODACTION_JL_MIN, "cache":cache, "ONLINE_STR":ONLINE_STR, "patron":patron, "approved_embed_hosts":approved_embed_hosts, "dues":dues, "SIDEBAR_THREAD":SIDEBAR_THREAD, "BANNER_THREAD":BANNER_THREAD, "BADGE_THREAD":BADGE_THREAD, "SNAPPY_THREAD":SNAPPY_THREAD, "KOFI_TOKEN":KOFI_TOKEN, "KOFI_LINK":KOFI_LINK} + "FP":FP, "NOTIF_MODACTION_JL_MIN":NOTIF_MODACTION_JL_MIN, "cache":cache, "ONLINE_STR":ONLINE_STR, "patron":patron, "approved_embed_hosts":approved_embed_hosts, "dues":dues, "SIDEBAR_THREAD":SIDEBAR_THREAD, "BANNER_THREAD":BANNER_THREAD, "BADGE_THREAD":BADGE_THREAD, "SNAPPY_THREAD":SNAPPY_THREAD, "KOFI_TOKEN":KOFI_TOKEN, "KOFI_LINK":KOFI_LINK, "MAIL_USERNAME":app.config['MAIL_USERNAME']} diff --git a/files/routes/static.py b/files/routes/static.py index 8391f4279..0c78e15e8 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -197,7 +197,7 @@ def api(v): @app.get("/contact_us") @app.get("/press") @app.get("/media") -@auth_required +@auth_desired def contact(v): return render_template("contact.html", v=v) diff --git a/files/templates/contact.html b/files/templates/contact.html index 9be00801c..202b07c50 100644 --- a/files/templates/contact.html +++ b/files/templates/contact.html @@ -21,35 +21,38 @@
Use this form to contact {{SITE_NAME}} Admins.
+ {% if v %} +Use this form to contact {{SITE_NAME}} Admins.
- + + + + + + + -+--+
Warrant Canary has been moved to Monthly Website Stats Posts.
+Warrant Canary has been moved to Monthly Website Stats Posts.
-++ {% include "emoji_modal.html" %} + {% else %} +-- - {% include "emoji_modal.html" %} +