aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/home/index.html
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-10-05 14:49:29 +0100
committerGravatar Gareth Coles <[email protected]>2019-10-05 14:49:29 +0100
commit23f7f9e5f09e7b5b52810d19ffe7ad31eeabd054 (patch)
tree92b534413076b32bb722e8f2d75f93ea90832d0c /pydis_site/templates/home/index.html
parentClean up and comment signal tests (diff)
Add MessageRedirectView and show messages on the index page
Diffstat (limited to 'pydis_site/templates/home/index.html')
-rw-r--r--pydis_site/templates/home/index.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/pydis_site/templates/home/index.html b/pydis_site/templates/home/index.html
index 205e92ff..a367fe70 100644
--- a/pydis_site/templates/home/index.html
+++ b/pydis_site/templates/home/index.html
@@ -9,6 +9,22 @@
{% block content %}
{% include "base/navbar.html" %}
+ {% if messages %}
+ <section class="section message-section is-centered">
+ <div class="columns is-mobile is-centered">
+ <div class="column is-one-third-desktop is-full-tablet is-full-mobile">
+ {% for message in messages %}
+ <div class="notification {% if message.tags %}is-{{ message.tags }}{% endif %}">
+ <button class="delete"></button>
+
+ {{ message }}
+ </div>
+ {% endfor %}
+ </div>
+ </div>
+ </section>
+ {% endif %}
+
<section class="section">
{# Who are we? #}