2021-09-02 22:49:36 +02:00
|
|
|
<div class="sidebar text-sm">
|
|
|
|
{%- if current_user.is_authenticated %}
|
2021-04-01 14:42:15 +02:00
|
|
|
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
|
2021-09-02 22:49:36 +02:00
|
|
|
<div class="image">
|
|
|
|
<div class="div-circle elevation-2"><i class="fa fa-user text-lg text-dark"></i></div>
|
|
|
|
</div>
|
2021-04-01 14:42:15 +02:00
|
|
|
<div class="info">
|
2021-09-02 22:49:36 +02:00
|
|
|
<a href="{{ url_for('.user_settings') }}" class="d-block">{{ current_user }}</a>
|
2021-04-01 14:42:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-09-02 22:49:36 +02:00
|
|
|
{%- endif %}
|
2021-04-01 14:42:15 +02:00
|
|
|
<nav class="mt-2">
|
|
|
|
<ul class="nav nav-pills nav-sidebar flex-column" role="menu">
|
2021-09-02 22:49:36 +02:00
|
|
|
{%- if current_user.is_authenticated %}
|
|
|
|
<li class="nav-header text-uppercase text-primary" role="none">{% trans %}My account{% endtrans %}</li>
|
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ url_for('.user_settings') }}" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fa fa-wrench"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Settings{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ url_for('.user_password') }}" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fa fa-lock"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Update password{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ url_for('.user_reply') }}" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fa fa-plane"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Auto-reply{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ url_for('.fetch_list') }}" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fas fa-download"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Fetched accounts{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ url_for('.token_list') }}" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fas fa-ticket-alt"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Authentication tokens{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
{%- if current_user.is_authenticated %}
|
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ url_for('.client') }}" class="nav-link" role="menuitem">
|
|
|
|
<i class="nav-icon fa fa-laptop"></i>
|
|
|
|
<p>{% trans %}Client setup{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
{%- endif %}
|
2017-11-10 15:49:36 +02:00
|
|
|
|
2021-09-02 22:49:36 +02:00
|
|
|
{%- if current_user.manager_of or current_user.global_admin %}
|
|
|
|
<li class="nav-header text-uppercase text-primary" role="none">{% trans %}Administration{% endtrans %}</li>
|
|
|
|
{%- endif %}
|
|
|
|
{%- if current_user.global_admin %}
|
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ url_for('.announcement') }}" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fa fa-bullhorn"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Announcement{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ url_for('.admin_list') }}" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fa fa-user"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Administrators{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ url_for('.relay_list') }}" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fa fa-reply-all"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Relayed domains{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
<li class="nav-item" role="none">
|
2021-10-29 11:22:46 +02:00
|
|
|
<a href="{{ config["WEB_ADMIN"] }}/antispam/" data-clicked="{{ url_for('.antispam') }}" target="_blank" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fas fa-trash-alt"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Antispam{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
{%- endif %}
|
|
|
|
{%- if current_user.manager_of or current_user.global_admin %}
|
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ url_for('.domain_list') }}" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fa fa-envelope"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Mail domains{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
{%- endif %}
|
|
|
|
{%- endif %}
|
2016-03-19 21:37:48 +02:00
|
|
|
|
2021-09-02 22:49:36 +02:00
|
|
|
<li class="nav-header text-uppercase text-primary" role="none">{% trans %}Go to{% endtrans %}</li>
|
2021-10-29 10:18:50 +02:00
|
|
|
{%- if config["WEBMAIL"] != "none" and current_user.is_authenticated %}
|
2021-09-02 22:49:36 +02:00
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ config["WEB_WEBMAIL"] }}" target="_blank" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon far fa-envelope"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Webmail{% endtrans %} <i class="fas fa-external-link-alt text-xs"></i></p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
{%- endif %}
|
|
|
|
{%- if not current_user.is_authenticated %}
|
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ url_for('.client') }}" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fa fa-laptop"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Client setup{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
{%- endif %}
|
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ config["WEBSITE"] }}" target="_blank" class="nav-link" role="menuitem" rel="noreferrer">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fa fa-globe"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Website{% endtrans %} <i class="fas fa-external-link-alt text-xs"></i></p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="https://mailu.io" target="_blank" class="nav-link" role="menuitem" rel="noreferrer">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fa fa-life-ring"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Help{% endtrans %} <i class="fas fa-external-link-alt text-xs"></i></p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
{%- if config['DOMAIN_REGISTRATION'] %}
|
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ url_for('.domain_signup') }}" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fa fa-plus-square"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Register a domain{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
{%- endif %}
|
|
|
|
{%- if current_user.is_authenticated %}
|
|
|
|
<li class="nav-item" role="none">
|
2021-10-26 13:54:25 +02:00
|
|
|
<a href="{{ url_for('sso.logout') }}" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fas fa-sign-out-alt"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Sign out{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
2021-10-29 10:18:50 +02:00
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ url_for('sso.login') }}" class="nav-link" role="menuitem">
|
2021-04-01 19:45:49 +02:00
|
|
|
<i class="nav-icon fas fa-sign-in-alt"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Sign in{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
{%- if signup_domains %}
|
|
|
|
<li class="nav-item" role="none">
|
|
|
|
<a href="{{ url_for('.user_signup') }}" class="nav-link" role="menuitem">
|
2021-04-01 14:42:15 +02:00
|
|
|
<i class="nav-icon fa fa-user-plus"></i>
|
2021-09-02 22:49:36 +02:00
|
|
|
<p>{% trans %}Sign up{% endtrans %}</p>
|
2021-04-01 14:42:15 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2021-09-02 22:49:36 +02:00
|
|
|
{%- endif %}
|
|
|
|
{%- endif %}
|
2021-04-01 14:42:15 +02:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|