From ff7434c48911adbff2f54916edcfab7f5ad2bb54 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Mon, 28 Aug 2023 15:23:11 +0200
Subject: [PATCH] nicer message id admin is disabled

---
 public_html/admin/index.php | 7 ++++++-
 public_html/admin/main.css  | 4 ++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/public_html/admin/index.php b/public_html/admin/index.php
index d73dcf8..34e1156 100644
--- a/public_html/admin/index.php
+++ b/public_html/admin/index.php
@@ -54,7 +54,12 @@ function getId($sDomain){
 // ----------------------------------------------------------------------
 
 if (!$oR->isEnabled()){
-    $sHtml.='<div class="error">Admin is disabled.</div>';
+    $sHtml.='<div class="content">
+        <h3>Nothing to see here.</h3>
+        <div class="error">
+            The Admin interface is disabled.
+        </div>
+        </div>';
 } else {
 
 
diff --git a/public_html/admin/main.css b/public_html/admin/main.css
index 8e5e4da..224eebe 100644
--- a/public_html/admin/main.css
+++ b/public_html/admin/main.css
@@ -12,8 +12,8 @@ footer{background:rgba(0,0,0,0.03); margin-top: 4em; text-align: right;padding:
 
 .content{margin: 0 1em;}
 .legend{background: #fff; padding: 1em;}
-.error{background: #fcc;}
-.warning{color:#651; background:#fec;}
+.error{background: #fcc; padding: 0.2em 1em;}
+.warning{color:#651; background:#fec; padding: 0.2em 1em;}
 
 .cfgtype-alias{color:#89a;}
 .http-301::after{color:#a55; content: ' (Moved Permanently)'}
-- 
GitLab