From a90fd421803d83625a1c01131b1d24b61580ce82 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 14:12:09 +0100 Subject: [PATCH] =?UTF-8?q?Widget=20:=20ic=C3=B4ne=20Autres=20valeurs=20al?= =?UTF-8?q?ign=C3=A9e=20=C3=A0=20droite,=20apr=C3=A8s=20l'API=20utilis?= =?UTF-8?q?=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012KN8Edianeo744pPim2CWu --- core/class/HomeWizard.class.php | 3 ++- core/template/dashboard/eqLogic.html | 1 + core/template/mobile/eqLogic.html | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/class/HomeWizard.class.php b/core/class/HomeWizard.class.php index d88673e..51ea832 100644 --- a/core/class/HomeWizard.class.php +++ b/core/class/HomeWizard.class.php @@ -1246,12 +1246,13 @@ public function toHtml($_version = 'dashboard') { if (in_array($cmd->getId(), $shown[1])) continue; $others .= ''.$cmd->getName().''.$span($cmd, ($cmd->getSubType() == 'numeric')?'number':'text', 2).' '.$cmd->getUnite().''; } + // à droite : l'API utilisée, puis le bouton des autres valeurs + $foot .= 'API '.(($this->getConfiguration('apiVersion') == 'v2')?'v2':'v1').''; if ($others != '') { $foot .= ''; $others = '
'.$others.'
'; } $replace['#hw_others#'] = $others; - $foot .= 'API '.(($this->getConfiguration('apiVersion') == 'v2')?'v2':'v1').''; $replace['#hw_image#'] = $this->getImage(); $replace['#hw_main#'] = $main; diff --git a/core/template/dashboard/eqLogic.html b/core/template/dashboard/eqLogic.html index 72c6a85..5f5b9cc 100644 --- a/core/template/dashboard/eqLogic.html +++ b/core/template/dashboard/eqLogic.html @@ -24,6 +24,7 @@ .hw-widget table.hw-phases tr + tr td { border-top: 1px solid rgba(127,127,127,.2); } .hw-widget .hw-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11px; opacity: .8; } .hw-widget .hw-foot .hw-grow { flex: 1; } + .hw-widget .hw-foot .hw-more { margin-left: -6px; } .hw-widget .hw-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--al-danger-color, #e53935); vertical-align: middle; } .hw-widget .hw-dot.hw-on { background: var(--al-success-color, #4caf50); } .hw-widget .hw-lbl-offline, .hw-widget .hw-offline .hw-lbl-online { display: none; } diff --git a/core/template/mobile/eqLogic.html b/core/template/mobile/eqLogic.html index 59c4106..2d40bd5 100644 --- a/core/template/mobile/eqLogic.html +++ b/core/template/mobile/eqLogic.html @@ -24,6 +24,7 @@ .hw-widget table.hw-phases tr + tr td { border-top: 1px solid rgba(127,127,127,.2); } .hw-widget .hw-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11px; opacity: .8; } .hw-widget .hw-foot .hw-grow { flex: 1; } + .hw-widget .hw-foot .hw-more { margin-left: -6px; } .hw-widget .hw-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--al-danger-color, #e53935); vertical-align: middle; } .hw-widget .hw-dot.hw-on { background: var(--al-success-color, #4caf50); } .hw-widget .hw-lbl-offline, .hw-widget .hw-offline .hw-lbl-online { display: none; }