aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-10-06 12:33:53 +0100
committerGravatar Gareth Coles <[email protected]>2019-10-06 12:33:53 +0100
commit486b37b9aeac4a3389aba43970a46024b7ee8c65 (patch)
treeccf495b9d1fa692e59aedc0a908c01893c736346 /pydis_site/templates
parentTest allauth redirect URLs (diff)
Move messages to the top right
Diffstat (limited to 'pydis_site/templates')
-rw-r--r--pydis_site/templates/base/base.html12
-rw-r--r--pydis_site/templates/home/index.html16
2 files changed, 12 insertions, 16 deletions
diff --git a/pydis_site/templates/base/base.html b/pydis_site/templates/base/base.html
index a419521c..7b197be3 100644
--- a/pydis_site/templates/base/base.html
+++ b/pydis_site/templates/base/base.html
@@ -26,6 +26,18 @@
<body class="site">
<main class="site-content">
+ {% if messages %}
+ <div class="messages is-full-mobile">
+ {% for message in messages %}
+ <div class="notification is-full-mobile {% if message.tags %}is-{{ message.tags }}{% endif %}">
+ <button class="delete"></button>
+
+ {{ message }}
+ </div>
+ {% endfor %}
+ </div>
+ {% endif %}
+
{% block content %}
{{ block.super }}
{% endblock %}
diff --git a/pydis_site/templates/home/index.html b/pydis_site/templates/home/index.html
index a367fe70..205e92ff 100644
--- a/pydis_site/templates/home/index.html
+++ b/pydis_site/templates/home/index.html
@@ -9,22 +9,6 @@
{% 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? #}