mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-07-08 08:10:21 +02:00
django-constance and traduction
This commit is contained in:
@ -5,6 +5,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
<!DOCTYPE html>
|
||||
{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %}
|
||||
<html lang="{{ LANGUAGE_CODE|default:"en" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %} class="position-relative h-100">
|
||||
{% if not config.MAINTENANCE %}
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
@ -191,7 +192,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endblocktrans %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if config.BANNER_MESSAGE %}
|
||||
{% if config.BANNER_MESSAGE and user.is_authenticated %}
|
||||
<div class="alert alert-{{ config.BANNER_TYPE }}">
|
||||
{{ config.BANNER_MESSAGE }}
|
||||
</div>
|
||||
@ -257,4 +258,15 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
{% block extrajavascript %}{% endblock %}
|
||||
</body>
|
||||
{% endif %}
|
||||
{% if config.MAINTENANCE %}
|
||||
<body>
|
||||
<div style="text-align:center">
|
||||
<br />
|
||||
{% trans "The note is not available for now" %}<br /><br />
|
||||
{{ config.MAINTENANCE_MESSAGE }}<br /><br />
|
||||
{% trans "Thank you for your understanding -- The Respos Info of BDE" %}
|
||||
</div>
|
||||
</body>
|
||||
{% endif %}
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user