mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Improve layout in AlertSummary
Use brighter color for notifications, render hours more readable.
This commit is contained in:
parent
ba1007465a
commit
80fc2a32db
@ -429,11 +429,10 @@ class Monitoring_AlertsummaryController extends Controller
|
|||||||
$item[1] = $item[1]/60/60;
|
$item[1] = $item[1]/60/60;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$gridChart->drawBars(
|
$gridChart->drawBars(
|
||||||
array(
|
array(
|
||||||
'label' => $this->translate('Notifications'),
|
'label' => $this->translate('Notifications'),
|
||||||
'color' => '#049baf',
|
'color' => '#07C0D9',
|
||||||
'data' => $notifications,
|
'data' => $notifications,
|
||||||
'showPoints' => true
|
'showPoints' => true
|
||||||
)
|
)
|
||||||
@ -478,7 +477,7 @@ class Monitoring_AlertsummaryController extends Controller
|
|||||||
$gridChart->drawBars(
|
$gridChart->drawBars(
|
||||||
array(
|
array(
|
||||||
'label' => $this->translate('Notifications'),
|
'label' => $this->translate('Notifications'),
|
||||||
'color' => '#049baf',
|
'color' => '#07C0D9',
|
||||||
'data' => $this->notificationData,
|
'data' => $this->notificationData,
|
||||||
'showPoints' => true
|
'showPoints' => true
|
||||||
)
|
)
|
||||||
@ -554,7 +553,7 @@ class Monitoring_AlertsummaryController extends Controller
|
|||||||
{
|
{
|
||||||
$format = '';
|
$format = '';
|
||||||
if ($interval === '1d') {
|
if ($interval === '1d') {
|
||||||
$format = '%H:00:00';
|
$format = '%H:00';
|
||||||
} elseif ($interval === '1w') {
|
} elseif ($interval === '1w') {
|
||||||
$format = '%Y-%m-%d';
|
$format = '%Y-%m-%d';
|
||||||
} elseif ($interval === '1m') {
|
} elseif ($interval === '1m') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user