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');
|
||||
$interval = new DateInterval('P' . $weekday . 'D');
|
||||
$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">
|
||||
<?php
|
||||
|
||||
$grid->setColor('#FC0707');
|
||||
$grid->setColor('#f05060');
|
||||
$data = array();
|
||||
|
||||
if (count($summary) === 0) {
|
||||
|
|
Loading…
Reference in New Issue