Show the notifications view
This commit is contained in:
@@ -45,6 +45,16 @@ class DashboardController extends Controller {
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows the notifications view.
|
||||
* @return \Illuminate\View\View
|
||||
*/
|
||||
public function showNotifications() {
|
||||
return View::make('dashboard.notifications')->with([
|
||||
'pageTitle' => 'Notifications - Dashboard'
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows the settings view.
|
||||
* @return \Illuminate\View\View
|
||||
|
||||
@@ -36,6 +36,7 @@ return array(
|
||||
'metrics' => 'Metrics',
|
||||
'status_page' => 'Status Page',
|
||||
'settings' => 'Settings',
|
||||
'notifications' => 'Notifications',
|
||||
'toggle_navigation' => 'Toggle Navigation',
|
||||
'search' => 'Search...',
|
||||
),
|
||||
|
||||
@@ -5,6 +5,7 @@ Route::group(['before' => 'auth', 'prefix' => 'dashboard'], function() {
|
||||
Route::get('components', ['as' => 'dashboard.components', 'uses' => 'DashboardController@showComponents']);
|
||||
Route::get('incidents', ['as' => 'dashboard.incidents', 'uses' => 'DashboardController@showIncidents']);
|
||||
Route::get('metrics', ['as' => 'dashboard.metrics', 'uses' => 'DashboardController@showMetrics']);
|
||||
Route::get('notifications', ['as' => 'dashboard.notifications', 'uses' => 'DashboardController@showNotifications']);
|
||||
Route::get('status-page', ['as' => 'dashboard.status-page', 'uses' => 'DashboardController@showStatusPage']);
|
||||
Route::get('settings', ['as' => 'dashboard.settings', 'uses' => 'DashboardController@showSettings']);
|
||||
});
|
||||
|
||||
26
app/views/dashboard/notifications.blade.php
Normal file
26
app/views/dashboard/notifications.blade.php
Normal file
@@ -0,0 +1,26 @@
|
||||
@extends('layout.dashboard')
|
||||
|
||||
@section('content')
|
||||
<div class="header">
|
||||
<i class="fa fa-envelope"></i> {{ Lang::get('cachet.dashboard.notifications') }}
|
||||
<input type="text" class="form-control input-sm pull-right" placeholder="{{ Lang::get('cachet.dashboard.search') }}">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div role='tabpanel'>
|
||||
<ul class="nav nav-tabs" role='tablist'>
|
||||
<li role='presentation' class='active'><a data-toggle='tab' role='tab' href="#notifications">Notifications</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div role='tabpanel' class='tab-pane active' id="notifications">
|
||||
<div class='row'>
|
||||
<div class='col-md-12'>
|
||||
<h3>Subscribers</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@@ -31,6 +31,11 @@
|
||||
<i class="fa fa-area-chart"></i> {{ Lang::get('cachet.dashboard.metrics') }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('dashboard/notifications') ? 'active' : '' }}">
|
||||
<a href="{{ URL::route('dashboard.notifications') }}">
|
||||
<i class="fa fa-envelope"></i> {{ Lang::get('cachet.dashboard.notifications') }}
|
||||
</a>
|
||||
</li>
|
||||
<!-- <li class="{{ Request::is('dashboard/status-page') ? 'active' : '' }}">
|
||||
<a href="{{ URL::route('dashboard.status-page') }}">
|
||||
<i class="fa fa-exclamation-circle"></i> {{ Lang::get('cachet.dashboard.status_page') }}
|
||||
|
||||
Reference in New Issue
Block a user