Switch to using Lang::get for view-composer

This commit is contained in:
James Brooks
2014-11-24 17:14:11 +00:00
parent 7634b93852
commit 971b4ac685
2 changed files with 8 additions and 2 deletions

6
app/lang/en/overview.php Normal file
View File

@@ -0,0 +1,6 @@
<?php
return array(
'good' => 'All systems are functional.',
'bad' => 'Some systems are experiencing issues.',
);

View File

@@ -11,10 +11,10 @@
if ($incidentCount <= 1 || ($incidentCount > 1 && (int) $incidents->first()->status === 4)) {
$status = 'success';
$message = 'All systems are functional.';
$message = Lang::get('overview.good');
} else {
$status = 'danger';
$message = 'Some systems are experiencing issues.';
$message = Lang::get('overview.bad');
}
$view->with([