|
|
@ -1,55 +1,83 @@
|
|
|
|
{% import "macros.html" as macros %}
|
|
|
|
{%- import "macros.html" as macros %}
|
|
|
|
{% import "bootstrap/utils.html" as utils %}
|
|
|
|
{%- import "bootstrap/utils.html" as utils %}
|
|
|
|
<!doctype html>
|
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<html lang="{{ session['language'] }}" data-static="{{ url_for('.static', filename='') }}">
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
|
|
|
<meta name="description" content="{% trans %}Admin page for{% endtrans %} {{ config["SITENAME"] }}">
|
|
|
|
|
|
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
|
|
|
|
|
|
<title>Mailu-Admin | {{ config["SITENAME"] }}</title>
|
|
|
|
<link rel="stylesheet" href="{{ url_for('.static', filename='vendor.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ url_for('.static', filename='vendor.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ url_for('.static', filename='app.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ url_for('.static', filename='app.css') }}">
|
|
|
|
<title>Mailu - {{ config["SITENAME"] }}</title>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body class="hold-transition sidebar-mini layout-fixed">
|
|
|
|
<body class="hold-transition sidebar-mini layout-fixed">
|
|
|
|
<div class="wrapper">
|
|
|
|
<div class="wrapper">
|
|
|
|
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
|
|
|
|
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
<li class="nav-item">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
|
|
|
|
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars" title="{% trans %}toggle sidebar{% endtrans %}" aria-expanded="false"></i><span class="sr-only">{% trans %}toggle sidebar{% endtrans %}</span></a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
|
|
|
{%- for page, url in path %}
|
|
|
|
|
|
|
|
{%- if loop.index > 1 %}
|
|
|
|
|
|
|
|
<i class="fas fa-greater-than text-xs text-gray" aria-hidden="true"></i>
|
|
|
|
|
|
|
|
{%- endif %}
|
|
|
|
|
|
|
|
{%- if url %}
|
|
|
|
|
|
|
|
<a class="nav-link d-inline-block" href="{{ url }}" role="button">{{ page }}</a>
|
|
|
|
|
|
|
|
{%- else %}
|
|
|
|
|
|
|
|
<span class="nav-link d-inline-block">{{ page }}</span>
|
|
|
|
|
|
|
|
{%- endif %}
|
|
|
|
|
|
|
|
{%- endfor %}
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul class="navbar-nav ml-auto">
|
|
|
|
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
|
|
|
|
<a class="nav-link" data-toggle="dropdown" href="#" aria-expanded="false">
|
|
|
|
|
|
|
|
<i class="fas fa-language text-xl" aria-hidden="true" title="{% trans %}change language{% endtrans %}"></i><span class="sr-only">Language</span>
|
|
|
|
|
|
|
|
<span class="badge badge-primary navbar-badge">{{ session['language'] }}</span></a>
|
|
|
|
|
|
|
|
<div class="dropdown-menu dropdown-menu-right p-0" id="mailu-languages">
|
|
|
|
|
|
|
|
{%- for locale in config.translations.values() %}
|
|
|
|
|
|
|
|
<a class="dropdown-item{% if locale.language == session['language'] %} active{% endif %}" href="{{ url_for('ui.set_language', language=locale.language) }}">{{ locale.get_language_name().title() }}</a>
|
|
|
|
|
|
|
|
{%- endfor %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</nav>
|
|
|
|
<aside class="main-sidebar sidebar-dark-primary">
|
|
|
|
<aside class="main-sidebar sidebar-dark-primary nav-compact elevation-4">
|
|
|
|
<a class="brand-link">
|
|
|
|
<a class="brand-link bg-mailu-logo"{% if config["LOGO_BACKGROUND"] %} style="background-color:{{ config["LOGO_BACKGROUND"] }}!important;"{% endif %}>
|
|
|
|
|
|
|
|
<img src="{{ config["LOGO_URL"] if config["LOGO_URL"] else url_for('.static', filename='mailu.png') }}" width="33" height="33" alt="Mailu" class="brand-image mailu-logo img-circle elevation-3">
|
|
|
|
<span class="brand-text font-weight-light">{{ config["SITENAME"] }}</span>
|
|
|
|
<span class="brand-text font-weight-light">{{ config["SITENAME"] }}</span>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
{% block sidebar %}
|
|
|
|
{%- include "sidebar_sso.html" %}
|
|
|
|
{% include "sidebar_sso.html" %}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
</aside>
|
|
|
|
</aside>
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<div class="content-wrapper text-sm">
|
|
|
|
<section class="content-header">
|
|
|
|
<section class="content-header">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row mb-2">
|
|
|
|
<div class="row mb-2">
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<h1 class="m-0">{% block title %}{% endblock %}</h1>
|
|
|
|
<h1 class="m-0">{%- block title %}{%- endblock %}</h1>
|
|
|
|
<small>{% block subtitle %}{% endblock %}</small>
|
|
|
|
<small>{% block subtitle %}{% endblock %}</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<div class="col-sm-6">
|
|
|
|
{% block main_action %}
|
|
|
|
{%- block main_action %}{%- endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
<div class="content">
|
|
|
|
{{ utils.flashed_messages(container=False) }}
|
|
|
|
{{ utils.flashed_messages(container=False, default_category='success') }}
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
{%- block content %}{%- endblock %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<footer class="main-footer">
|
|
|
|
<footer class="main-footer">
|
|
|
|
Built with <i class="fa fa-heart"></i> using <a class="white-text" href="http://flask.pocoo.org/">Flask</a> and
|
|
|
|
Built with <i class="fa fa-heart text-danger" aria-hidden="true"></i><span class="sr-only">love</span>
|
|
|
|
<a class="white-text" href="https://adminlte.io/themes/v3/index3.html">AdminLTE</a>
|
|
|
|
using <a href="https://flask.palletsprojects.com/">Flask</a>
|
|
|
|
<span class="pull-right"><i class="fa fa-code-fork"></i>on <a class="white-text" href="https://github.com/Mailu/Mailu">Github</a></a></span>
|
|
|
|
and <a href="https://adminlte.io/themes/v3/index3.html">AdminLTE</a>.
|
|
|
|
|
|
|
|
<span class="fa-pull-right">
|
|
|
|
|
|
|
|
<i class="fa fa-code-branch" aria-hidden="true"></i><span class="sr-only">fork</span>
|
|
|
|
|
|
|
|
on <a href="https://github.com/Mailu/Mailu">Github</a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</footer>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script src="{{ url_for('.static', filename='vendor.js') }}"></script>
|
|
|
|
<script src="{{ url_for('.static', filename='vendor.js') }}"></script>
|
|
|
|