Browse Source

[Web] Fix quarantine view and add missing lang string

andryyy 5 years ago
parent
commit
5fab69afcc

+ 1 - 1
data/web/css/site/quarantine.css

@@ -15,7 +15,7 @@ table.footable>tbody>tr.footable-empty>td {
   overflow: visible !important;
 }
 
-@media screen and (max-width: 767px) {
+@media screen and (max-width: 1280px) {
   .table-responsive {
     overflow-x: scroll !important;
   }

+ 2 - 0
data/web/lang/lang.de.json

@@ -218,6 +218,8 @@
         "session_ua": "Formular-Token ungültig: User-Agent-Validierungsfehler"
     },
     "user": {
+        "last_mail_login": "Letzter Mail-Login",
+        "no_last_login": "Keine letzte UI Anmeldung gespeichert",
         "generate": "generieren",
         "apple_connection_profile": "Apple Verbindungsprofil",
         "apple_connection_profile_mailonly": "Dieses Verbindungsprofil beinhaltet IMAP und SMTP Konfigurationen für ein Apple Gerät.",

+ 2 - 0
data/web/lang/lang.en.json

@@ -218,6 +218,8 @@
         "ip_invalid": "Skipped invalid IP: %s"
     },
     "user": {
+        "no_last_login": "No last UI login information",
+        "last_mail_login": "Last mail login",
         "apple_connection_profile": "Apple connection profile",
         "apple_connection_profile_mailonly": "This connection profile includes IMAP and SMTP configuration parameters for an Apple device.",
         "apple_connection_profile_complete": "This connection profile includes IMAP and SMTP parameters as well as CalDAV (calendars) and CardDAV (contacts) pathes for an Apple device.",

+ 1 - 0
data/web/lang/lang.ru.json

@@ -821,6 +821,7 @@
     "yubi_otp": "Yubico OTP аутентификация"
   },
   "user": {
+    "last_mail_login": "Последний вход",
     "action": "Действия",
     "active": "Активный",
     "active_sieve": "Включенные фильтры",

+ 2 - 2
data/web/user.php

@@ -26,7 +26,7 @@ if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == 'doma
         ?>
         <span style="margin-right:10px" class="glyphicon glyphicon-log-in"></span> <span data-time="<?=$_SESSION['mailcow_cc_last_login']['time'];?>" class="last_login_date"></span> (<?=$_SESSION['mailcow_cc_last_login']['remote'];?>)
         <?php
-        else: echo "Last login: -"; endif;
+        else: echo $lang['user']['no_last_login']; endif;
         ?>
         </small></p>
         <p>
@@ -124,7 +124,7 @@ elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == '
             ?>
             <span style="margin-right:10px" class="glyphicon glyphicon-log-in"></span> <span data-time="<?=$_SESSION['mailcow_cc_last_login']['time'];?>" class="last_login_date"></span> (<?=$_SESSION['mailcow_cc_last_login']['remote'];?>)
             <?php
-            else: echo "Last login: -"; endif;
+            else: echo $lang['user']['no_last_login']; endif;
             ?>
             </small></p>
           </div>