From 48b716e21286680e5c160a696eef95e29ff2ebef Mon Sep 17 00:00:00 2001
From: Tony BONNIN <stopyz@gmail.com>
Date: Tue, 3 Sep 2024 17:41:30 +0200
Subject: [PATCH] Logo Enhancement

Signed-off-by: Tony BONNIN <stopyz@gmail.com>
---
 app/template-html.lsp                             |  6 +++---
 www/skins/dashboard/css/dashboard-main/dark.css   |  2 +-
 www/skins/dashboard/css/dashboard-pages/roles.css | 13 +++++++++----
 3 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/app/template-html.lsp b/app/template-html.lsp
index 38d2bc2..0ff4c6f 100644
--- a/app/template-html.lsp
+++ b/app/template-html.lsp
@@ -53,7 +53,7 @@ end
 		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
 		<meta name="viewport" content="width=device-width, initial-scale=1">
 		<meta name="theme-color" content="#5a329f">
-		<meta name="apple-mobile-web-app-capable" content="yes">
+		<meta name="mobile-web-app-capable" content="yes">
 		<meta name="apple-mobile-web-app-status-bar-style" content="#5a329f">
 <% if pageinfo.skinned ~= "false" then %>
 		<title><%= ("Dashboard - " .. string.gsub(pageinfo.controller, "^%l", string.upper) .. " ∣ " .. string.gsub(pageinfo.action, "^%l", string.upper)) %></title>
@@ -116,9 +116,9 @@ end
 				<a class='icon-header' id='toggle-theme' title='Dark Mode' onclick='toggleTheme()' href='javascript:void(0);'><i class="fa-solid fa-circle-half-stroke"></i></a>	
 				<%
 					if session.userinfo and session.userinfo.userid then
-						print("<span id='text-user-logon' class='text-user-"..(session.userinfo.userid).."' title='User @ HOST'>"..(session.userinfo.userid).." @ "..string.upper(hostname or "unknown").."</span>")
+						print("<a href=".. html.html_escape(pageinfo.wwwprefix) .. "/cgi-bin/acf/acf-util/roles/read".."><span id='text-user-logon' class='text-user-"..(session.userinfo.userid).."' title='User @ HOST'>"..(session.userinfo.userid).." @ "..string.upper(hostname or "unknown").."</span></a>")
 						print ("<!-- ADMIN can change User CSS icon - Username is print in CCS class \"user-icon user-{@username]\" -->")
-						print("<span id='user-logon' class='user-icon user-"..(session.userinfo.userid).."' title='"..(session.userinfo.userid).." CSS icon'></span>")
+						print("<a href=".. html.html_escape(pageinfo.wwwprefix) .. "/cgi-bin/acf/acf-util/roles/read".."><span id='user-logon' class='user-icon user-"..(session.userinfo.userid).."' title='"..(session.userinfo.userid).." CSS icon'></span></a>")
 					end
 				%>
 				</div>
diff --git a/www/skins/dashboard/css/dashboard-main/dark.css b/www/skins/dashboard/css/dashboard-main/dark.css
index 01bd235..5682d09 100644
--- a/www/skins/dashboard/css/dashboard-main/dark.css
+++ b/www/skins/dashboard/css/dashboard-main/dark.css
@@ -99,7 +99,7 @@
 }
 
 .dark-theme #footer {
-    background: #1a232e;
+    background: #282828;
 }
 
 .dark-theme #theme-conv {
diff --git a/www/skins/dashboard/css/dashboard-pages/roles.css b/www/skins/dashboard/css/dashboard-pages/roles.css
index 6a44ce9..c711110 100644
--- a/www/skins/dashboard/css/dashboard-pages/roles.css
+++ b/www/skins/dashboard/css/dashboard-pages/roles.css
@@ -24,11 +24,16 @@
     font-family: "Font Awesome 6 Free";
     font-weight: bold;
     content: '\F505';
-    margin: 0 0.5rem 0 0;
-    color: rgb(173 219 0);
+    margin: 0 0 0 -0.35rem;
     position: relative;
-    font-size: 1.25rem;
-    top: 0;
+    font-size: 1.75rem;
+    top: 0.35rem;
+    background-image: url(../../img/logos/trinity-user.png) !important;
+    color: transparent;
+    border-radius: 50em;
+    background-size: cover;
+    background-repeat: no-repeat;
+    background-position: center;
 }
 
 #section-root-is-valid-in-these-roles p {
-- 
GitLab