mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
57 lines
2.0 KiB
HTML
57 lines
2.0 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 %}
|
|
<noscript>
|
|
<style type="text/css">
|
|
.container {display:none;}
|
|
</style>
|
|
<div class="noscriptmsg">
|
|
JavaScript is not enabled. The Mailu setup site does not function without JavaScript enabled.
|
|
</div>
|
|
</noscript>
|
|
|
|
<div id="container" class="container">
|
|
<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>
|
|
<script>
|
|
if ( typeof jQueryMailu == "undefined" || typeof jQuery == "undefined" || typeof render == "undefined"){
|
|
console.log("jQuery or render.js or bootstrap js are not defined");
|
|
document.getElementById("container").style["display"] = "none";
|
|
const message = document.createElement("p");
|
|
message.innerText = "JQuery or render.js or bootstrap could not be downloaded and initialized. JavaScript must be enabled. Do not block any scripts and do not block any site downloads.";
|
|
document.body.appendChild(message);
|
|
}
|
|
</script>
|
|
{{super()}}
|
|
{% endblock %} |