mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Fix layout of HistoryColorGrid
Use actual color for critical hosts and only display the first two letters of the weekday
This commit is contained in:
parent
39688ece90
commit
e39dd64a1b
@ -273,7 +273,7 @@ class HistoryColorGrid extends AbstractWidget {
|
|||||||
$sun = DateTimeFactory::create('last Sunday');
|
$sun = DateTimeFactory::create('last Sunday');
|
||||||
$interval = new DateInterval('P' . $weekday . 'D');
|
$interval = new DateInterval('P' . $weekday . 'D');
|
||||||
$sun->add($interval);
|
$sun->add($interval);
|
||||||
return $sun->format('D');
|
return substr($sun->format('D'), 0, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -9,7 +9,7 @@ use Icinga\Data\Filter\Filter;
|
|||||||
<div class="content" data-base-target="_next">
|
<div class="content" data-base-target="_next">
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$grid->setColor('#FC0707');
|
$grid->setColor('#f05060');
|
||||||
$data = array();
|
$data = array();
|
||||||
|
|
||||||
if (count($summary) === 0) {
|
if (count($summary) === 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user