1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/setup/templates/base.html
Dimitri Huisman 02d5202c68
Process ghostwheel's suggestion. By default hide the container div element and
show the no-javascript div element. Via JavaScript hide the no-java div element
and show the container div element.
2023-11-07 10:49:59 +00:00

44 lines
1.4 KiB
HTML

{% extends "bootstrap/base.html" %}
{% import "macros.html" as macros %}
{% from 'bootstrap/utils.html' import flashed_messages %}
{% block title %}Mailu setup{% endblock %}
{% block content %}
<div id=no_java_script class="noscriptmsg">
JavaScript is not enabled or JavaScript files were blocked. The Mailu setup site does not function when JavaScript is disabled.
</div>
<div id="container" class="container" style="display:none;">
<h1>Mailu configuration</h1>
{{ flashed_messages() }}
<p>
Version
<select id=version_select onchange="window.location.href=this.value;" class="btn btn-primary dropdown-toggle">
{% for module in versions %}
<option value="/{{ module }}" {% if module == version %}selected {% endif %}>{{ module }}</option>
{% endfor %}
</select>
</p>
{% if version != stable_version %}
{% call macros.panel("danger", "You have not selected the stable version") %}
You have not selected the stable version. The stable version is {{ stable_version }}.
The selected version can be used for testing and reporting bugs.
For production scenarios we recommend to use the stable version.
{% endcall %}
{% endif %}
{% block page %}{% endblock %}
</div>
<p></p>
{% endblock %}
{% block scripts %}
<script type="text/javascript" src="{{ url_for('static', filename='jquery.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='render.js') }}"></script>
{{super()}}
{% endblock %}