Skip to content

Commit

Permalink
Fix layout of HistoryColorGrid
Browse files Browse the repository at this point in the history
Use actual color for critical hosts and only display the first two letters of the weekday
  • Loading branch information
majentsch committed Sep 8, 2014
1 parent 39688ec commit e39dd64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/Icinga/Web/Widget/Chart/HistoryColorGrid.php
Expand Up @@ -273,7 +273,7 @@ private function weekdayName($weekday)
$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);
}

/**
Expand Down
Expand Up @@ -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) {
Expand Down

0 comments on commit e39dd64

Please sign in to comment.