Apply review comments

This commit is contained in:
Antoine Bartuccio 2024-11-11 00:45:49 +01:00
parent ec7d45fd91
commit aebf909dc6
2 changed files with 18 additions and 16 deletions

View File

@ -44,30 +44,32 @@
{% block header %} {% block header %}
{% if not popup %} {% if not popup %}
{% include "core/base/header.jinja" %} {% include "core/base/header.jinja" %}
{% block info_boxes %}
<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 %}
</div>
{% endblock %}
{% else %} {% else %}
<div id="popupheader">{{ user.get_display_name() }}</div> <div id="popupheader">{{ user.get_display_name() }}</div>
{% endif %} {% endif %}
{% block info_boxes %}
<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 %}
</div>
{% endblock %}
{% endblock %} {% endblock %}
{% block nav %} {% block nav %}
{% if not popup %} {% if not popup %}
{% include "core/base/menu.jinja" %} {% include "core/base/navbar.jinja" %}
{% endif %} {% endif %}
{% endblock %} {% endblock %}