2016-03-19 21:37:48 +02:00
|
|
|
<section class="sidebar">
|
2017-10-29 19:13:59 +02:00
|
|
|
{% if current_user.is_authenticated %}
|
2016-03-19 21:37:48 +02:00
|
|
|
<h4 class="text-center text-primary">{{ current_user }}</h4>
|
2017-10-29 19:13:59 +02:00
|
|
|
{% endif %}
|
2016-03-19 21:37:48 +02:00
|
|
|
|
|
|
|
<ul class="sidebar-menu">
|
2017-10-29 19:13:59 +02:00
|
|
|
{% if current_user.is_authenticated %}
|
2016-10-02 14:43:48 +02:00
|
|
|
<li class="header">{% trans %}My account{% endtrans %}</li>
|
2016-03-19 21:37:48 +02:00
|
|
|
<li>
|
2016-03-20 16:36:56 +02:00
|
|
|
<a href="{{ url_for('.user_settings') }}">
|
2016-10-02 14:43:48 +02:00
|
|
|
<i class="fa fa-wrench"></i> <span>{% trans %}Settings{% endtrans %}</span>
|
2016-03-19 21:37:48 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2016-03-20 16:36:56 +02:00
|
|
|
<a href="{{ url_for('.user_password') }}">
|
2016-10-02 14:43:48 +02:00
|
|
|
<i class="fa fa-lock"></i> <span>{% trans %}Update password{% endtrans %}</span>
|
2016-03-19 21:37:48 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2016-03-20 16:36:56 +02:00
|
|
|
<a href="{{ url_for('.user_reply') }}">
|
2016-10-02 14:43:48 +02:00
|
|
|
<i class="fa fa-plane"></i> <span>{% trans %}Auto-reply{% endtrans %}</span>
|
2016-03-19 21:37:48 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2016-04-28 20:07:38 +02:00
|
|
|
<a href="{{ url_for('.fetch_list') }}">
|
2016-10-02 14:43:48 +02:00
|
|
|
<i class="fa fa-download"></i> <span>{% trans %}Fetched accounts{% endtrans %}</span>
|
2016-03-19 21:37:48 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2017-10-29 15:49:07 +02:00
|
|
|
<li>
|
|
|
|
<a href="{{ url_for('.token_list') }}">
|
|
|
|
<i class="fa fa-ticket"></i> <span>{% trans %}Authentication tokens{% endtrans %}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2017-11-10 15:49:36 +02:00
|
|
|
|
2018-06-25 21:35:40 +02:00
|
|
|
{% if current_user.manager_of or current_user.global_admin %}
|
2016-10-02 14:43:48 +02:00
|
|
|
<li class="header">{% trans %}Administration{% endtrans %}</li>
|
2018-06-25 21:35:40 +02:00
|
|
|
{% endif %}
|
2016-03-19 21:37:48 +02:00
|
|
|
{% if current_user.global_admin %}
|
2016-11-10 11:48:37 +02:00
|
|
|
<li>
|
|
|
|
<a href="{{ url_for('.announcement') }}">
|
|
|
|
<i class="fa fa-bullhorn"></i> <span>{% trans %}Announcement{% endtrans %}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2016-03-19 21:37:48 +02:00
|
|
|
<li>
|
2016-04-24 19:17:40 +02:00
|
|
|
<a href="{{ url_for('.admin_list') }}">
|
2016-10-02 14:43:48 +02:00
|
|
|
<i class="fa fa-user"></i> <span>{% trans %}Administrators{% endtrans %}</span>
|
2016-03-19 21:37:48 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2017-09-10 20:48:39 +02:00
|
|
|
<li>
|
|
|
|
<a href="{{ url_for('.relay_list') }}">
|
|
|
|
<i class="fa fa-reply-all"></i> <span>{% trans %}Relayed domains{% endtrans %}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2017-11-10 15:49:36 +02:00
|
|
|
<li>
|
|
|
|
<a href="{{ config["WEB_ADMIN"] }}/antispam/">
|
|
|
|
<i class="fa fa-trash-o"></i> <span>{% trans %}Antispam{% endtrans %}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2016-03-19 21:37:48 +02:00
|
|
|
{% endif %}
|
2016-04-24 19:42:02 +02:00
|
|
|
{% if current_user.manager_of or current_user.global_admin %}
|
2016-03-19 21:37:48 +02:00
|
|
|
<li>
|
2016-03-20 16:36:56 +02:00
|
|
|
<a href="{{ url_for('.domain_list') }}">
|
2016-10-02 14:43:48 +02:00
|
|
|
<i class="fa fa-envelope"></i> <span>{% trans %}Mail domains{% endtrans %}</span>
|
2016-03-19 21:37:48 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2017-10-29 19:13:59 +02:00
|
|
|
{% endif %}
|
2016-03-19 21:37:48 +02:00
|
|
|
|
2017-10-29 19:13:59 +02:00
|
|
|
<li class="header">{% trans %}Go to{% endtrans %}</li>
|
|
|
|
{% if config["WEBMAIL"] != "none" %}
|
|
|
|
<li>
|
2017-11-10 16:00:51 +02:00
|
|
|
<a href="{{ config["WEB_WEBMAIL"] }}/">
|
2017-10-29 19:13:59 +02:00
|
|
|
<i class="fa fa-envelope-o"></i> <span>{% trans %}Webmail{% endtrans %}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2018-04-11 21:45:17 +02:00
|
|
|
<li>
|
|
|
|
<a href="{{ url_for('.client') }}">
|
|
|
|
<i class="fa fa-laptop"></i> <span>{% trans %}Client setup{% endtrans %}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2017-10-29 19:13:59 +02:00
|
|
|
<li>
|
2017-11-10 16:00:51 +02:00
|
|
|
<a href="{{ config["WEBSITE"] }}">
|
2017-10-29 19:13:59 +02:00
|
|
|
<i class="fa fa-globe"></i> <span>{% trans %}Website{% endtrans %}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2016-03-19 21:37:48 +02:00
|
|
|
<li>
|
2017-11-10 16:00:51 +02:00
|
|
|
<a href="https://mailu.io">
|
2016-10-02 14:43:48 +02:00
|
|
|
<i class="fa fa-life-ring"></i> <span>{% trans %}Help{% endtrans %}</span>
|
2016-03-19 21:37:48 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2018-04-18 20:31:32 +02:00
|
|
|
{% if config['DOMAIN_REGISTRATION'] %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ url_for('.domain_signup') }}">
|
|
|
|
<i class="fa fa-plus-square"></i> <span>{% trans %}Register a domain{% endtrans %}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2017-10-29 19:13:59 +02:00
|
|
|
{% if current_user.is_authenticated %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ url_for('.logout') }}">
|
|
|
|
<i class="fa fa-sign-out"></i> <span>{% trans %}Sign out{% endtrans %}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li>
|
2017-12-03 13:01:25 +02:00
|
|
|
<a href="{{ url_for('.login') }}">
|
2017-10-29 19:13:59 +02:00
|
|
|
<i class="fa fa-sign-in"></i> <span>{% trans %}Sign in{% endtrans %}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2017-12-03 13:01:25 +02:00
|
|
|
{% if signup_domains %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ url_for('.user_signup') }}">
|
|
|
|
<i class="fa fa-user-plus"></i> <span>{% trans %}Sign up{% endtrans %}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2017-10-29 19:13:59 +02:00
|
|
|
{% endif %}
|
2016-03-19 21:37:48 +02:00
|
|
|
</ul>
|
|
|
|
</section>
|