counter: don't display info boxes and navigation menu

This will lighten the pages and make the functionality directly
accessible without ever scrolling the header garbage that is never
needed on those pages.
This commit is contained in:
Skia
2021-09-25 02:52:13 +02:00
parent f5d7267ba7
commit 64d0cc2fa8
6 changed files with 46 additions and 20 deletions

View File

@ -126,17 +126,19 @@
</header>
<div id="info_boxes">
{% set sith = get_sith() %}
{% if sith.alert_msg %}
<div id="alert_box">
{{ sith.alert_msg|markdown }}
</div>
{% endif %}
{% if sith.info_msg %}
<div id="info_box">
{{ sith.info_msg|markdown }}
</div>
{% endif %}
{% block info_boxes %}
{% set sith = get_sith() %}
{% if sith.alert_msg %}
<div id="alert_box">
{{ sith.alert_msg|markdown }}
</div>
{% endif %}
{% if sith.info_msg %}
<div id="info_box">
{{ sith.info_msg|markdown }}
</div>
{% endif %}
{% endblock %}
</div>
{% else %}{# if not popup #}