From 9405c0c6d2ee4ef9648127ef2bbd9d6d525c0412 Mon Sep 17 00:00:00 2001 From: Klaudia Date: Thu, 31 Dec 2020 02:28:38 +0100 Subject: [PATCH] Alerts messages --- SocialHelper/homepage/templates/alerts.html | 18 ++++++++++++++++++ SocialHelper/homepage/templates/base.html | 1 + 2 files changed, 19 insertions(+) create mode 100644 SocialHelper/homepage/templates/alerts.html diff --git a/SocialHelper/homepage/templates/alerts.html b/SocialHelper/homepage/templates/alerts.html new file mode 100644 index 0000000..372fba4 --- /dev/null +++ b/SocialHelper/homepage/templates/alerts.html @@ -0,0 +1,18 @@ +{% if messages %} +{% for message in messages %} + +
+ +
+{% endfor %} +{% endif %} diff --git a/SocialHelper/homepage/templates/base.html b/SocialHelper/homepage/templates/base.html index fd31dca..e5a77fc 100644 --- a/SocialHelper/homepage/templates/base.html +++ b/SocialHelper/homepage/templates/base.html @@ -24,6 +24,7 @@ {% include 'navbar.html' %} + {% include 'alerts.html' %} {% block content %} {% endblock %}