Re-add Discord link to participant dashboard
This commit is contained in:
parent
02eb9b4220
commit
7255ccebfd
2 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,7 @@ class Config():
|
|||
|
||||
SQLALCHEMY_DATABASE_URI = dotenv_values().get("SQLALCHEMY_DATABASE_URI") or "postgresql://localhost/goathacks"
|
||||
|
||||
MAX_BEFORE_WAITLIST = int(dotenv_values().get("MAX_BEFORE_WAITLIST")) or 1
|
||||
MAX_BEFORE_WAITLIST = int(dotenv_values().get("MAX_BEFORE_WAITLIST") or 1)
|
||||
MCE_API_KEY = dotenv_values().get("MCE_API_KEY")
|
||||
SECRET_KEY = dotenv_values().get("SECRET_KEY") or "bad-key-change-me"
|
||||
|
||||
|
|
|
@ -15,6 +15,12 @@
|
|||
<p class="card-text">Let us know if you have any questions by sending
|
||||
them to <a href="mailto:hack@wpi.edu">hack@wpi.edu</a></p>
|
||||
|
||||
{% if not current_user.waitlisted and config['DISCORD_LINK'] %}
|
||||
<p>Make sure to join our Discord to get the latest updates!</p>
|
||||
<button type="button" class="btn btn-primary mb-3"><a href="{{ config['DISCORD_LINK']
|
||||
}}" class="link-light">Discord</a></button>
|
||||
{% endif %}
|
||||
|
||||
<div class="row center justify-content-center">
|
||||
<form method="post">
|
||||
{{ form.csrf_token() }}
|
||||
|
|
Loading…
Add table
Reference in a new issue