Skip to content

Commit e42355a

Browse files
committed
fix: Domain-Badge nur für einzelne Domains, lila Farbe
1 parent 5198e32 commit e42355a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

assets/css/maintenance.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@
99
[data-maintenance="custom"] {
1010
color: #d75452;
1111
}
12+
13+
/* Purple label for domain-based maintenance */
14+
.label-purple {
15+
background-color: #9b59b6;
16+
}

lib/Maintenance.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,13 +398,14 @@ public static function setIndicators(): void
398398
$page['icon'] .= ' fa-toggle-on block_frontend';
399399

400400
// Check for domain-based maintenance - nur wenn Frontend-Wartung aktiv
401+
// Badge nur für einzelne Domains, nicht wenn alle gesperrt sind
401402
$domainStatus = (array) self::getConfig('domain_status', []);
402403
$allDomainsLocked = (bool) self::getConfig('all_domains_locked', false);
403404
$activeDomains = array_filter($domainStatus);
404405

405-
if ($allDomainsLocked || !empty($activeDomains)) {
406-
$count = $allDomainsLocked ? 'All' : count($activeDomains);
407-
$page['title'] .= ' <span class="label label-warning pull-right" title="Domain-Wartung aktiv">D:' . $count . '</span>';
406+
if (!$allDomainsLocked && !empty($activeDomains)) {
407+
$count = count($activeDomains);
408+
$page['title'] .= ' <span class="label label-purple pull-right" title="Domain-Wartung aktiv">D:' . $count . '</span>';
408409
$page['icon'] .= ' fa-sitemap';
409410
}
410411
}

0 commit comments

Comments
 (0)