comparison 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
comparison
equal deleted inserted replaced
201:d5f4f29b1c5d 202:a1fa6744c78e
102 {% trans %}Your data has been sent correctly.{% endtrans %} 102 {% trans %}Your data has been sent correctly.{% endtrans %}
103 {% endblock confirm_message %} 103 {% endblock confirm_message %}
104 </div> 104 </div>
105 {% endblock confirm %} 105 {% endblock confirm %}
106 {% endif %} 106 {% endif %}
107 {% if notifications %}
108 {% block notifications %}
109 {% for notification in notifications %}
110 <div class="box notification notification--{{notification.level}}">
111 {{ notification.message }}
112 </div>
113 {% endfor %}
114 {% endblock notifications %}
115 {% endif %}
107 116
108 </header> 117 </header>
109 118
110 <div id="body"> 119 <div id="body">
111 {% block category_menu scoped %} 120 {% block category_menu scoped %}