Use SITENAME and WEBSITE properly in the admin ui

master
kaiyou 7 years ago
parent 872271cb47
commit fb42797ab7

@ -48,6 +48,7 @@ default_config = {
'SITENAME': 'Mailu', 'SITENAME': 'Mailu',
'WEBSITE': 'https://mailu.io', 'WEBSITE': 'https://mailu.io',
'WEB_ADMIN': '/admin', 'WEB_ADMIN': '/admin',
'WEB_WEBMAIL': '/webmail',
# Advanced settings # Advanced settings
'PASSWORD_SCHEME': 'SHA512-CRYPT', 'PASSWORD_SCHEME': 'SHA512-CRYPT',
} }

@ -29,7 +29,7 @@ class="hold-transition skin-blue sidebar-mini"
{% block navbar %} {% block navbar %}
<header class="main-header"> <header class="main-header">
<a href="/admin/" class="logo"> <a href="/admin/" class="logo">
<span class="logo-lg">Mailu</span> <span class="logo-lg">{{ config["SITENAME"] }}</span>
</a> </a>
</header> </header>
<aside class="main-sidebar"> <aside class="main-sidebar">

@ -77,18 +77,18 @@
<li class="header">{% trans %}Go to{% endtrans %}</li> <li class="header">{% trans %}Go to{% endtrans %}</li>
{% if config["WEBMAIL"] != "none" %} {% if config["WEBMAIL"] != "none" %}
<li> <li>
<a href="/webmail/"> <a href="{{ config["WEB_WEBMAIL"] }}/">
<i class="fa fa-envelope-o"></i> <span>{% trans %}Webmail{% endtrans %}</span> <i class="fa fa-envelope-o"></i> <span>{% trans %}Webmail{% endtrans %}</span>
</a> </a>
</li> </li>
{% endif %} {% endif %}
<li> <li>
<a href="https://mailu.io"> <a href="{{ config["WEBSITE"] }}">
<i class="fa fa-globe"></i> <span>{% trans %}Website{% endtrans %}</span> <i class="fa fa-globe"></i> <span>{% trans %}Website{% endtrans %}</span>
</a> </a>
</li> </li>
<li> <li>
<a href="https://github.com/Mailu/Mailu"> <a href="https://mailu.io">
<i class="fa fa-life-ring"></i> <span>{% trans %}Help{% endtrans %}</span> <i class="fa fa-life-ring"></i> <span>{% trans %}Help{% endtrans %}</span>
</a> </a>
</li> </li>

Loading…
Cancel
Save