Update badge text logic in projects_section.php to exclude 'dienste' category
This commit is contained in:
parent
156a0ddeb3
commit
cffbdcd764
@ -39,7 +39,7 @@
|
|||||||
$detail = $status && !empty($status['detail']) ? (string)$status['detail'] : '';
|
$detail = $status && !empty($status['detail']) ? (string)$status['detail'] : '';
|
||||||
|
|
||||||
$badgeText = null;
|
$badgeText = null;
|
||||||
if ($state !== null) {
|
if ($state !== null && $category !== 'dienste') {
|
||||||
$badgeText = 'Unbekannt';
|
$badgeText = 'Unbekannt';
|
||||||
if ($state === 'up') $badgeText = 'Online';
|
if ($state === 'up') $badgeText = 'Online';
|
||||||
elseif ($state === 'down') $badgeText = 'Offline';
|
elseif ($state === 'down') $badgeText = 'Offline';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user