Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/class/HomeWizard.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1246,12 +1246,13 @@ public function toHtml($_version = 'dashboard') {
if (in_array($cmd->getId(), $shown[1])) continue;
$others .= '<tr><td>'.$cmd->getName().'</td><td>'.$span($cmd, ($cmd->getSubType() == 'numeric')?'number':'text', 2).' '.$cmd->getUnite().'</td></tr>';
}
// à droite : l'API utilisée, puis le bouton des autres valeurs
$foot .= '<span class="hw-grow"></span><span>API '.(($this->getConfiguration('apiVersion') == 'v2')?'v2':'v1').'</span>';
if ($others != '') {
$foot .= '<span class="hw-more cursor" title="'.__("Autres valeurs", __FILE__).'"><i class="fas fa-list-ul"></i></span>';
$others = '<div class="hw-popup"><table>'.$others.'</table></div>';
}
$replace['#hw_others#'] = $others;
$foot .= '<span class="hw-grow"></span><span>API '.(($this->getConfiguration('apiVersion') == 'v2')?'v2':'v1').'</span>';

$replace['#hw_image#'] = $this->getImage();
$replace['#hw_main#'] = $main;
Expand Down
1 change: 1 addition & 0 deletions core/template/dashboard/eqLogic.html
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
1 change: 1 addition & 0 deletions core/template/mobile/eqLogic.html
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
Loading