Skip to content

Commit b5f411d

Browse files
committed
Revert of the revert #21977f32053a80466bbecdb050b8102e0fb2463c
1 parent 8cce970 commit b5f411d

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

app/Controller/LoginController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ public function login($redirectBack = 0){
6969
}
7070
if($this->request->referer(true) === '/') {
7171
$this->Auth->loginRedirect = array(
72-
'controller' => 'home',
73-
'action' => 'demo'
72+
'controller' => 'dashboards',
73+
'action' => 'index'
7474
);
7575
}
7676

app/View/Elements/Dashboard/host_piechart_180.ctp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838
'critical',
3939
'unknown'
4040
];
41-
41+
4242
$bgColors = [
4343
1 => 'bg-color-red',
4444
2 => 'bg-color-blueDark'
4545
];
46-
46+
4747
?>
48-
48+
4949
</div>
5050
<div class="col-xs-12 stats180 margin-top-10" style="display:none; position: absolute; top:0px;">
5151
<?php foreach([1, 2] as $state): ?>
@@ -57,7 +57,7 @@
5757
'plugin' => '',
5858
'Filter.Hoststatus.current_state['.$state.']' => 1
5959
]); ?>" style="color:#FFF;">
60-
<?php echo __('( %s ) down', $widgetHostStateArray180['state'][$state]);?>
60+
<?php echo __('( %s ) '.strtolower($this->Status->humanSimpleHostStatus($state)), $widgetHostStateArray180['state'][$state]);?>
6161
</a>
6262
</div>
6363
<div class="col-xs-12">
@@ -109,7 +109,7 @@
109109
<?php endforeach; ?>
110110
</div>
111111
</div>
112-
112+
113113
<div class="text-center font-xs">
114114
<div class="col-xs-12">
115115
<div class="toggleDetailsForPiechart"><i class="fa fa-angle-down"></i></div>

app/View/Elements/Dashboard/service_piechart_180.ctp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@
3939
'critical',
4040
'unknown'
4141
];
42-
42+
4343
$bgColors = [
44-
1 => 'bg-color-red',
45-
2 => 'bg-color-orange',
44+
1 => 'bg-color-orange',
45+
2 => 'bg-color-red',
4646
3 => 'bg-color-blueDark'
4747
];
48-
48+
4949
?>
5050
</div>
5151
<div class="col-xs-12 stats180 margin-top-10" style="display:none; position: absolute; top:0px;">
@@ -58,7 +58,7 @@
5858
'plugin' => '',
5959
'Filter.Servicestatus.current_state['.$state.']' => 1
6060
]); ?>" style="color:#FFF;">
61-
<?php echo __('( %s ) warning', $widgetServiceStateArray180['state'][$state]);?>
61+
<?php echo __('( %s ) '.strtolower($this->Status->humanSimpleServiceStatus($state)), $widgetServiceStateArray180['state'][$state]);?>
6262
</a>
6363
</div>
6464
<div class="col-xs-12">

0 commit comments

Comments
 (0)