@@ -213,11 +213,14 @@ |
||
| 213 | 213 | $disabled = $this->disabled; |
| 214 | 214 | if ($disabled == 1) { |
| 215 | 215 | return 'teal'; |
| 216 | - } elseif ($ignore == 1) { |
|
| 216 | + } |
|
| 217 | + elseif ($ignore == 1) { |
|
| 217 | 218 | return 'yellow'; |
| 218 | - } elseif ($status == 0) { |
|
| 219 | + } |
|
| 220 | + elseif ($status == 0) { |
|
| 219 | 221 | return 'danger'; |
| 220 | - } else { |
|
| 222 | + } |
|
| 223 | + else { |
|
| 221 | 224 | return 'success'; |
| 222 | 225 | } |
| 223 | 226 | } |
@@ -41,7 +41,8 @@ |
||
| 41 | 41 | ->editColumn('status_reason', function ($device) { |
| 42 | 42 | if ($device->status == 0) { |
| 43 | 43 | return '<span data-toggle="tooltip" title="down" class="device-status label label-danger">'.$device->status_reason.'</span>'; |
| 44 | - } else { |
|
| 44 | + } |
|
| 45 | + else { |
|
| 45 | 46 | return '<span data-toggle="tooltip" title="up" class="device-status label label-success">up</span>'; |
| 46 | 47 | } |
| 47 | 48 | }) |