Wrap notifications HTML code into a block
This block is override in error pages to be none and do not show notifications on these pages.humitos/mkdocs/theme-config
parent
017f5817e1
commit
a341a4482f
|
@ -10,6 +10,8 @@
|
|||
{% include "error_header.html" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block notify %}{% endblock %}
|
||||
|
||||
{# Hide the language select form so we don't set a CSRF cookie #}
|
||||
{% block language-select-form %}{% endblock %}
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
{% include "error_header.html" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block notify %}{% endblock %}
|
||||
|
||||
{# Hide the language select form so we don't set a CSRF cookie #}
|
||||
{% block language-select-form %}{% endblock %}
|
||||
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
{% include "error_header.html" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block notify %}{% endblock %}
|
||||
|
||||
{# Hide the language select form so we don't set a CSRF cookie #}
|
||||
{% block language-select-form %}{% endblock %}
|
||||
|
||||
|
|
|
@ -84,6 +84,8 @@
|
|||
<div id="content">
|
||||
<div class="wrapper">
|
||||
|
||||
<!-- BEGIN notify -->
|
||||
{% block notify %}
|
||||
{% if messages %}
|
||||
<ul class="notifications">
|
||||
{% for message in messages %}
|
||||
|
@ -93,6 +95,8 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
<!-- END notify -->
|
||||
|
||||
{% block content-header %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue