mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-05-04 23:00:19 +02:00
parent
49e7964355
commit
b626a96e16
@ -122,17 +122,18 @@ class HistoryColorGrid extends AbstractWidget {
|
|||||||
{
|
{
|
||||||
if (array_key_exists($day, $this->data) && $this->data[$day]['value'] > 0) {
|
if (array_key_exists($day, $this->data) && $this->data[$day]['value'] > 0) {
|
||||||
$entry = $this->data[$day];
|
$entry = $this->data[$day];
|
||||||
return'<a ' .
|
return '<a ' .
|
||||||
'style="background-color:' . $this->calculateColor($entry['value']) . '; '
|
'style="background-color: ' . $this->calculateColor($entry['value']) . ';'
|
||||||
. ' opacity: ' . $this->opacity . ';"' .
|
. ' opacity: ' . $this->opacity . ';" ' .
|
||||||
|
'aria-label="' . $entry['caption'] . '" ' .
|
||||||
'title="' . $entry['caption'] . '" ' .
|
'title="' . $entry['caption'] . '" ' .
|
||||||
'href="' . $entry['url'] . '"' .
|
'href="' . $entry['url'] . '"' .
|
||||||
'> </a>';
|
|
||||||
} else {
|
|
||||||
return '<a ' .
|
|
||||||
'style="background-color:' . $this->calculateColor(0) . '; ' . ' opacity: ' . $this->opacity . ';" ' .
|
|
||||||
'title="No entries for ' . $day . '" ' .
|
|
||||||
'></a>';
|
'></a>';
|
||||||
|
} else {
|
||||||
|
return '<span ' .
|
||||||
|
'style="background-color: ' . $this->calculateColor(0) . '; opacity: ' . $this->opacity . ';" ' .
|
||||||
|
'title="No entries for ' . $day . '" ' .
|
||||||
|
'></span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user