From 18a1dcb0d11a6983dce7f17499777b36d466076f Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Thu, 14 Dec 2023 18:32:09 -0500 Subject: [PATCH] Enable setting discord link via config Also makes it super easy to turn on/off the discord button, if the DISCORD_LINK configuration option is undefined, it'll show a little message that discord is still under construction --- goathacks/templates/dashboard.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/goathacks/templates/dashboard.html b/goathacks/templates/dashboard.html index 26680c6..44c9656 100644 --- a/goathacks/templates/dashboard.html +++ b/goathacks/templates/dashboard.html @@ -30,10 +30,13 @@ Forgot to upload your resume while registering? No worries, submit it below.
+ {% if config['DISCORD_LINK'] is defined %}
Make sure to join the Discord and enter your shirt size below!
-

(Please note that due to COVID-19 constraints, we can't guarantee that all participants will receive Hack@WPI t-shirts this year but we are trying to find a way!)

- Discord + {% else %} +
Our discord is still under construction! We'll send out an email when it's ready.
+ {% endif %}