diff sat_templates/templates/default/base/base.html @ 202:a1fa6744c78e

base: handle notifications through "notifications" variable
author Goffi <goffi@goffi.org>
date Sun, 26 May 2019 22:05:06 +0200
parents cda2aad3eed0
children d586ea13cfed
line wrap: on
line diff
--- a/sat_templates/templates/default/base/base.html	Sun May 05 20:36:00 2019 +0200
+++ b/sat_templates/templates/default/base/base.html	Sun May 26 22:05:06 2019 +0200
@@ -104,6 +104,15 @@
                     </div>
                 {% endblock confirm %}
             {% endif %}
+            {% if notifications %}
+                {% block notifications %}
+                    {% for notification in notifications %}
+                        <div class="box notification notification--{{notification.level}}">
+                            {{ notification.message }}
+                        </div>
+                    {% endfor %}
+                {% endblock notifications %}
+            {% endif %}
 
         </header>