Fixed translations of dashboard page title
This commit is contained in:
@@ -49,7 +49,7 @@ class ComponentController extends Controller
|
||||
'components' => [
|
||||
'title' => trans('dashboard.components.components'),
|
||||
'url' => route('dashboard.components.index'),
|
||||
'icon' => 'ion-outlet',
|
||||
'icon' => 'ion-ios-browsers',
|
||||
'active' => false,
|
||||
],
|
||||
'groups' => [
|
||||
|
||||
@@ -70,7 +70,6 @@ class IncidentController extends Controller
|
||||
public function showIncidents()
|
||||
{
|
||||
$incidents = Incident::notScheduled()->orderBy('created_at', 'desc')->get();
|
||||
|
||||
return View::make('dashboard.incidents.index')
|
||||
->withPageTitle(trans('dashboard.incidents.incidents').' - '.trans('dashboard.dashboard'))
|
||||
->withIncidents($incidents);
|
||||
|
||||
@@ -69,8 +69,9 @@ class ScheduleController extends Controller
|
||||
public function showIndex()
|
||||
{
|
||||
$schedule = Incident::scheduled()->orderBy('created_at')->get();
|
||||
|
||||
return View::make('dashboard.schedule.index')->withSchedule($schedule);
|
||||
return View::make('dashboard.schedule.index')
|
||||
->withPageTitle(trans('dashboard.schedule.schedule').' - '.trans('dashboard.dashboard'))
|
||||
->withSchedule($schedule);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -83,6 +84,7 @@ class ScheduleController extends Controller
|
||||
$incidentTemplates = IncidentTemplate::all();
|
||||
|
||||
return View::make('dashboard.schedule.add')
|
||||
->withPageTitle(trans('dashboard.schedule.add.title').' - '.trans('dashboard.dashboard'))
|
||||
->withIncidentTemplates($incidentTemplates);
|
||||
}
|
||||
|
||||
@@ -123,6 +125,7 @@ class ScheduleController extends Controller
|
||||
$incidentTemplates = IncidentTemplate::all();
|
||||
|
||||
return View::make('dashboard.schedule.edit')
|
||||
->withPageTitle(trans('dashboard.schedule.edit.title').' - '.trans('dashboard.dashboard'))
|
||||
->withIncidentTemplates($incidentTemplates)
|
||||
->withSchedule($schedule);
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ class SettingsController extends Controller
|
||||
Session::flash('redirect_to', $this->subMenu['setup']['url']);
|
||||
|
||||
return View::make('dashboard.settings.app-setup')
|
||||
->withPageTitle('Application Setup - Dashboard')
|
||||
->withPageTitle(trans('dashboard.settings.app-setup.app-setup').' - '.trans('dashboard.dashboard'))
|
||||
->withSubMenu($this->subMenu);
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ class SettingsController extends Controller
|
||||
Session::flash('redirect_to', $this->subMenu['analytics']['url']);
|
||||
|
||||
return View::make('dashboard.settings.analytics')
|
||||
->withPageTitle('Analytics - Dashboard')
|
||||
->withPageTitle(trans('dashboard.settings.analytics.analytics').' - '.trans('dashboard.dashboard'))
|
||||
->withSubMenu($this->subMenu);
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ class SettingsController extends Controller
|
||||
Session::flash('redirect_to', $this->subMenu['localization']['url']);
|
||||
|
||||
return View::make('dashboard.settings.localization')
|
||||
->withPageTitle('Localization - Dashboard')
|
||||
->withPageTitle(trans('dashboard.settings.localization.localization').' - '.trans('dashboard.dashboard'))
|
||||
->withSubMenu($this->subMenu);
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ class SettingsController extends Controller
|
||||
Session::flash('redirect_to', $this->subMenu['theme']['url']);
|
||||
|
||||
return View::make('dashboard.settings.theme')
|
||||
->withPageTitle('Theme - Dashboard')
|
||||
->withPageTitle(trans('dashboard.settings.theme.theme').' - '.trans('dashboard.dashboard'))
|
||||
->withSubMenu($this->subMenu);
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@ class SettingsController extends Controller
|
||||
Session::flash('redirect_to', $this->subMenu['security']['url']);
|
||||
|
||||
return View::make('dashboard.settings.security')
|
||||
->withPageTitle('Security - Dashboard')
|
||||
->withPageTitle(trans('dashboard.settings.security.security').' - '.trans('dashboard.dashboard'))
|
||||
->withSubMenu($this->subMenu)
|
||||
->withUnsecureUsers($unsecureUsers);
|
||||
}
|
||||
@@ -183,7 +183,7 @@ class SettingsController extends Controller
|
||||
Session::flash('redirect_to', $this->subMenu['stylesheet']['url']);
|
||||
|
||||
return View::make('dashboard.settings.stylesheet')
|
||||
->withPageTitle('Stylesheet - Dashboard')
|
||||
->withPageTitle(trans('dashboard.settings.stylesheet.stylesheet').' - '.trans('dashboard.dashboard'))
|
||||
->withSubMenu($this->subMenu);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user