[BS5] rearrange nav items

This commit is contained in:
FreddleSpl0it 2022-07-08 15:46:14 +02:00
parent b149da28c8
commit d3cd21956a
22 changed files with 45 additions and 33 deletions

View File

@ -270,7 +270,7 @@
"administration": "Administració", "administration": "Administració",
"debug": "Debug", "debug": "Debug",
"mailboxes": "Bústies", "mailboxes": "Bústies",
"mailcow_settings": "Configuració", "mailcow_config": "Configuració",
"quarantine": "Quarantena", "quarantine": "Quarantena",
"restart_sogo": "Reiniciar SOGo", "restart_sogo": "Reiniciar SOGo",
"user_settings": "Preferències d'usuari" "user_settings": "Preferències d'usuari"

View File

@ -644,7 +644,7 @@
"apps": "Aplikace", "apps": "Aplikace",
"debug": "Systémové informace", "debug": "Systémové informace",
"mailboxes": "Nastavení mailů", "mailboxes": "Nastavení mailů",
"mailcow_settings": "Nastavení", "mailcow_config": "Nastavení",
"quarantine": "Karanténa", "quarantine": "Karanténa",
"restart_netfilter": "Restartovat netfilter", "restart_netfilter": "Restartovat netfilter",
"restart_sogo": "Restartovat SOGo", "restart_sogo": "Restartovat SOGo",

View File

@ -582,7 +582,7 @@
"apps": "Apps", "apps": "Apps",
"debug": "Systemoplysninger", "debug": "Systemoplysninger",
"mailboxes": "Mailopsætning", "mailboxes": "Mailopsætning",
"mailcow_settings": "Konfiguration", "mailcow_config": "Konfiguration",
"quarantine": "Karantæne", "quarantine": "Karantæne",
"restart_netfilter": "Genstart netfilter", "restart_netfilter": "Genstart netfilter",
"restart_sogo": "Genstart SOGo", "restart_sogo": "Genstart SOGo",

View File

@ -675,9 +675,9 @@
"header": { "header": {
"administration": "Server-Konfiguration", "administration": "Server-Konfiguration",
"apps": "Apps", "apps": "Apps",
"debug": "Systeminformation", "debug": "Information",
"mailboxes": "E-Mail-Setup", "mailboxes": "E-Mail-Setup",
"mailcow_settings": "Konfiguration", "mailcow_config": "Konfiguration",
"quarantine": "Quarantäne", "quarantine": "Quarantäne",
"restart_netfilter": "Netfilter neustarten", "restart_netfilter": "Netfilter neustarten",
"restart_sogo": "SOGo neustarten", "restart_sogo": "SOGo neustarten",

View File

@ -675,9 +675,10 @@
"header": { "header": {
"administration": "Configuration & Details", "administration": "Configuration & Details",
"apps": "Apps", "apps": "Apps",
"debug": "System Information", "debug": "Information",
"mailboxes": "Mail Setup", "mailboxes": "Mail Setup",
"mailcow_settings": "Configuration", "mailcow_system": "System",
"mailcow_config": "Configuration",
"quarantine": "Quarantine", "quarantine": "Quarantine",
"restart_netfilter": "Restart netfilter", "restart_netfilter": "Restart netfilter",
"restart_sogo": "Restart SOGo", "restart_sogo": "Restart SOGo",

View File

@ -438,7 +438,7 @@
"administration": "Administración", "administration": "Administración",
"debug": "Información del sistema", "debug": "Información del sistema",
"mailboxes": "Buzones", "mailboxes": "Buzones",
"mailcow_settings": "Configuración", "mailcow_config": "Configuración",
"quarantine": "Cuarentena", "quarantine": "Cuarentena",
"restart_sogo": "Reiniciar SOGo", "restart_sogo": "Reiniciar SOGo",
"user_settings": "Configuraciones de usuario" "user_settings": "Configuraciones de usuario"

View File

@ -507,7 +507,7 @@
"apps": "Sovellukset", "apps": "Sovellukset",
"debug": "Järjestelmä tiedot", "debug": "Järjestelmä tiedot",
"mailboxes": "Verkkotunnuksien asetukset", "mailboxes": "Verkkotunnuksien asetukset",
"mailcow_settings": "Kokoonpano", "mailcow_config": "Kokoonpano",
"quarantine": "Karanteeni", "quarantine": "Karanteeni",
"restart_netfilter": "Uudelleen käynnistä netfilter", "restart_netfilter": "Uudelleen käynnistä netfilter",
"restart_sogo": "Uudelleen käynnistä SOGo", "restart_sogo": "Uudelleen käynnistä SOGo",

View File

@ -599,7 +599,7 @@
"apps": "Applications", "apps": "Applications",
"debug": "Information Système", "debug": "Information Système",
"mailboxes": "Configuration du courrier", "mailboxes": "Configuration du courrier",
"mailcow_settings": "Configuration", "mailcow_config": "Configuration",
"quarantine": "Quarantaine", "quarantine": "Quarantaine",
"restart_netfilter": "Redémarrer Netfilter", "restart_netfilter": "Redémarrer Netfilter",
"restart_sogo": "Redémarrer SOGo", "restart_sogo": "Redémarrer SOGo",

View File

@ -55,7 +55,7 @@
"apps": "Appok", "apps": "Appok",
"debug": "Rendszer információ", "debug": "Rendszer információ",
"mailboxes": "Email beállítások", "mailboxes": "Email beállítások",
"mailcow_settings": "Beállítások", "mailcow_config": "Beállítások",
"quarantine": "Karantén", "quarantine": "Karantén",
"restart_netfilter": "Netfilter újraindítása", "restart_netfilter": "Netfilter újraindítása",
"restart_sogo": "SOGo újraindítása", "restart_sogo": "SOGo újraindítása",

View File

@ -651,7 +651,7 @@
"apps": "App", "apps": "App",
"debug": "Informazioni di sistema", "debug": "Informazioni di sistema",
"mailboxes": "Caselle", "mailboxes": "Caselle",
"mailcow_settings": "Configurazione", "mailcow_config": "Configurazione",
"quarantine": "Quarantena", "quarantine": "Quarantena",
"restart_netfilter": "Riavvia netfilter", "restart_netfilter": "Riavvia netfilter",
"restart_sogo": "Riavvia SOGo", "restart_sogo": "Riavvia SOGo",

View File

@ -573,7 +573,7 @@
"apps": "Apps", "apps": "Apps",
"debug": "System Information", "debug": "System Information",
"mailboxes": "Mail Setup", "mailboxes": "Mail Setup",
"mailcow_settings": "Configuration", "mailcow_config": "Configuration",
"quarantine": "Quarantine", "quarantine": "Quarantine",
"restart_netfilter": "Restart netfilter", "restart_netfilter": "Restart netfilter",
"restart_sogo": "Restart SOGo", "restart_sogo": "Restart SOGo",

View File

@ -278,7 +278,7 @@
"administration": "Administrēšana", "administration": "Administrēšana",
"debug": "Atkļūdošana", "debug": "Atkļūdošana",
"mailboxes": "Pastkastes", "mailboxes": "Pastkastes",
"mailcow_settings": "Configurācija", "mailcow_config": "Configurācija",
"quarantine": "Karantīna", "quarantine": "Karantīna",
"restart_sogo": "Restartēt SOGo", "restart_sogo": "Restartēt SOGo",
"user_settings": "Lietotāja uzstādījumi" "user_settings": "Lietotāja uzstādījumi"

View File

@ -592,7 +592,7 @@
"apps": "Apps", "apps": "Apps",
"debug": "Systeeminformatie", "debug": "Systeeminformatie",
"mailboxes": "Mailconfiguratie", "mailboxes": "Mailconfiguratie",
"mailcow_settings": "Beheer", "mailcow_config": "Beheer",
"quarantine": "Quarantaine", "quarantine": "Quarantaine",
"restart_netfilter": "Herstart netfilter", "restart_netfilter": "Herstart netfilter",
"restart_sogo": "Herstart SOGo", "restart_sogo": "Herstart SOGo",

View File

@ -202,7 +202,7 @@
"header": { "header": {
"administration": "Administrowanie", "administration": "Administrowanie",
"mailboxes": "Skrzynki", "mailboxes": "Skrzynki",
"mailcow_settings": "Konfiguracja", "mailcow_config": "Konfiguracja",
"quarantine": "Kwarantanna", "quarantine": "Kwarantanna",
"restart_sogo": "Uruchom ponownie SOGo", "restart_sogo": "Uruchom ponownie SOGo",
"user_settings": "Ustawienia użytkownika" "user_settings": "Ustawienia użytkownika"

View File

@ -137,7 +137,7 @@
"header": { "header": {
"administration": "Administração", "administration": "Administração",
"mailboxes": "Contas", "mailboxes": "Contas",
"mailcow_settings": "Configuração", "mailcow_config": "Configuração",
"user_settings": "Configurações do usuário" "user_settings": "Configurações do usuário"
}, },
"info": { "info": {

View File

@ -650,7 +650,7 @@
"apps": "Aplicații", "apps": "Aplicații",
"debug": "Informații Sistem", "debug": "Informații Sistem",
"mailboxes": "Configurare Mail", "mailboxes": "Configurare Mail",
"mailcow_settings": "Configurație", "mailcow_config": "Configurație",
"quarantine": "Carantină", "quarantine": "Carantină",
"restart_netfilter": "Repornire netfilter", "restart_netfilter": "Repornire netfilter",
"restart_sogo": "Repornire SOGo", "restart_sogo": "Repornire SOGo",

View File

@ -648,7 +648,7 @@
"apps": "Приложения", "apps": "Приложения",
"debug": "Состояние сервера", "debug": "Состояние сервера",
"mailboxes": "Настройка почты", "mailboxes": "Настройка почты",
"mailcow_settings": "Конфигурация", "mailcow_config": "Конфигурация",
"quarantine": "Карантин", "quarantine": "Карантин",
"restart_netfilter": "Перезапустить netfilter", "restart_netfilter": "Перезапустить netfilter",
"restart_sogo": "Перезапустить SOGo", "restart_sogo": "Перезапустить SOGo",

View File

@ -650,7 +650,7 @@
"apps": "Aplikácie", "apps": "Aplikácie",
"debug": "Systémové informácie", "debug": "Systémové informácie",
"mailboxes": "Nastavenie mailov", "mailboxes": "Nastavenie mailov",
"mailcow_settings": "Konfigurácia", "mailcow_config": "Konfigurácia",
"quarantine": "Karanténa", "quarantine": "Karanténa",
"restart_netfilter": "Reštartovať netfilter", "restart_netfilter": "Reštartovať netfilter",
"restart_sogo": "Reštart SOGo", "restart_sogo": "Reštart SOGo",

View File

@ -608,7 +608,7 @@
"apps": "Applikationer", "apps": "Applikationer",
"debug": "Systeminformation", "debug": "Systeminformation",
"mailboxes": "Ställ in mejl", "mailboxes": "Ställ in mejl",
"mailcow_settings": "Konfiguration", "mailcow_config": "Konfiguration",
"quarantine": "Karantän", "quarantine": "Karantän",
"restart_netfilter": "Starta om netfilter", "restart_netfilter": "Starta om netfilter",
"restart_sogo": "Starta om SOGo", "restart_sogo": "Starta om SOGo",

View File

@ -655,7 +655,7 @@
"restart_netfilter": "Перезапустити netfilter", "restart_netfilter": "Перезапустити netfilter",
"restart_sogo": "Перезапустити SOGo", "restart_sogo": "Перезапустити SOGo",
"user_settings": "Налаштування користувача", "user_settings": "Налаштування користувача",
"mailcow_settings": "Конфігурація" "mailcow_config": "Конфігурація"
}, },
"info": { "info": {
"no_action": "Дій не передбачено", "no_action": "Дій не передбачено",

View File

@ -583,7 +583,7 @@
"apps": "应用", "apps": "应用",
"debug": "系统信息", "debug": "系统信息",
"mailboxes": "邮箱设置", "mailboxes": "邮箱设置",
"mailcow_settings": "配置", "mailcow_config": "配置",
"quarantine": "隔离", "quarantine": "隔离",
"restart_netfilter": "重启netfilter", "restart_netfilter": "重启netfilter",
"restart_sogo": "重启SOGo", "restart_sogo": "重启SOGo",

View File

@ -59,24 +59,27 @@
{% endif %} {% endif %}
{% if mailcow_cc_role %} {% if mailcow_cc_role %}
<li class="nav-item dropdown"> <li class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false">{{ lang.header.mailcow_settings }}</a> <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false">{{ lang.header.mailcow_system }}</a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
{% if mailcow_cc_role == 'admin' %} {% if mailcow_cc_role == 'admin' %}
<li><a href="/admin" class="dropdown-item {% if is_uri('admin') %}active{% endif %}">{{ lang.header.administration }}</a></li>
<li><a href="/debug" class="dropdown-item {% if is_uri('debug') %}active{% endif %}">{{ lang.header.debug }}</a></li> <li><a href="/debug" class="dropdown-item {% if is_uri('debug') %}active{% endif %}">{{ lang.header.debug }}</a></li>
{% endif %} <li><a href="/admin" class="dropdown-item {% if is_uri('admin') %}active{% endif %}">{{ lang.header.mailcow_config }}</a></li>
{% if mailcow_cc_role == 'admin' or mailcow_cc_role == 'domainadmin' %}
<li><a href="/mailbox" class="dropdown-item {% if is_uri('mailbox') %}active{% endif %}">{{ lang.header.mailboxes }}</a></li>
{% endif %} {% endif %}
{% if mailcow_cc_role != 'admin' %} {% if mailcow_cc_role != 'admin' %}
<li><a href="/user" class="dropdown-item {% if is_uri('user') %}active{% endif %}">{{ lang.header.user_settings }}</a></li> <li><a href="/user" class="dropdown-item {% if is_uri('user') %}active{% endif %}">{{ lang.header.user_settings }}</a></li>
{% endif %} {% endif %}
</ul> </ul>
</li> </li>
<li class="nav-item"><a href="/quarantine" class="nav-link {% if is_uri('quarantine') %}active{% endif %}"><i class="bi bi-inbox-fill me-2"></i> {{ lang.header.quarantine }}</a></li> <li class="nav-item dropdown">
{% endif %} <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false">{{ lang.header.mailboxes }}</a>
{% if mailcow_cc_role == 'admin' and not skip_sogo %} <ul class="dropdown-menu">
<li class="nav-item"><a href="#" class="nav-link" data-bs-toggle="modal" data-container="sogo-mailcow" data-bs-target="#RestartContainer"><i class="bi bi-arrow-repeat me-2"></i> {{ lang.header.restart_sogo }}</a></li> {% if mailcow_cc_role == 'admin' or mailcow_cc_role == 'domainadmin' %}
<li><a href="/mailbox" class="dropdown-item {% if is_uri('mailbox') %}active{% endif %}">{{ lang.header.mailboxes }}</a></li>
{% endif %}
<li><a href="/quarantine" class="dropdown-item {% if is_uri('quarantine') %}active{% endif %}">{{ lang.header.quarantine }}</a></li>
<li><a href="#" class="dropdown-item" data-bs-toggle="modal" data-container="sogo-mailcow" data-bs-target="#RestartContainer">{{ lang.header.restart_sogo }}</a></li>
</ul>
</li>
{% endif %} {% endif %}
{% if mailcow_apps or app_links %} {% if mailcow_apps or app_links %}
<li class="nav-item dropdown"> <li class="nav-item dropdown">
@ -132,6 +135,14 @@
var lang_tfa = {{ lang_tfa|raw }}; var lang_tfa = {{ lang_tfa|raw }};
var lang_fido2 = {{ lang_fido2|raw }}; var lang_fido2 = {{ lang_fido2|raw }};
var docker_timeout = {{ docker_timeout|raw }} * 1000; var docker_timeout = {{ docker_timeout|raw }} * 1000;
var mailcow_info = {
version_tag: '{{ mailcow_info.version_tag }}',
last_version_tag: '{{ mailcow_info.last_version_tag }}',
updatedAt: '{{ mailcow_info.updatedAt }}',
project_url: '{{ mailcow_info.project_url }}',
project_owner: '{{ mailcow_info.project_owner }}',
project_repo: '{{ mailcow_info.project_repo }}'
};
$(window).scroll(function() { $(window).scroll(function() {
sessionStorage.scrollTop = $(this).scrollTop(); sessionStorage.scrollTop = $(this).scrollTop();
@ -439,7 +450,7 @@ function recursiveBase64StrToArrayBuffer(obj) {
{% if mailcow_cc_username and mailcow_info.version_tag|default %} {% if mailcow_cc_username and mailcow_info.version_tag|default %}
<span class="version"> <span class="version">
🐮 + 🐋 = 💕 🐮 + 🐋 = 💕
<a href="{{ mailcow_info.git_project_url }}/releases/tag/{{ mailcow_info.version_tag }}" target="_blank"> <a href="{{ mailcow_info.project_url }}/releases/tag/{{ mailcow_info.version_tag }}" target="_blank">
Version: {{ mailcow_info.version_tag }} Version: {{ mailcow_info.version_tag }}
</a> </a>
</span> </span>