From e0c3c799026f255d9d7d612e659d6d8f7acf002f Mon Sep 17 00:00:00 2001 From: TLSM Date: Sat, 25 Jun 2022 21:01:21 -0400 Subject: [PATCH] WPD: Require flairs on all posts. --- files/helpers/const.py | 2 ++ files/helpers/jinja2.py | 2 +- files/routes/posts.py | 3 +++ files/templates/submit.html | 5 +++-- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 0622f3c93..44605640b 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -140,6 +140,7 @@ AGENDAPOSTER_MSG_HTML = """

Hi {{HOLE_NAME|capitalize}}

- + {%- set hole_placeholder = 'Required' if HOLE_REQUIRED else 'Optional' -%} + {% for s in SUBS %} @@ -92,7 +93,7 @@
- {% if not SITE_NAME == 'WPD' -%} + {% if not HOLE_REQUIRED -%}
WARNING: Selecting a {{HOLE_NAME}} considerably reduces the number of people who will see your post. Don't select a {{HOLE_NAME}} unless that's what you want.
{%- endif %}