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:
Matthias Jentsch 2014-09-08 09:52:28 +02:00
parent 39688ece90
commit e39dd64a1b
2 changed files with 2 additions and 2 deletions

View File

@ -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);
} }
/** /**

View File

@ -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) {