1
0
mirror of https://github.com/CachetHQ/Cachet.git synced 2025-02-25 12:13:33 +01:00

Make the sidebar link take us to the incident template page

This commit is contained in:
James Brooks 2014-12-20 20:59:20 +00:00
parent 660a2d041a
commit 5731adfb89
2 changed files with 3 additions and 3 deletions
app
routes
views/partials/dashboard

@ -16,7 +16,7 @@ Route::group(['before' => 'auth', 'prefix' => 'dashboard'], function() {
Route::get('incidents', ['as' => 'dashboard.incidents', 'uses' => 'DashIncidentController@showIncidents']);
Route::get('incidents/add', ['as' => 'dashboard.incidents.add', 'uses' => 'DashIncidentController@showAddIncident']);
Route::post('incidents/add', 'DashIncidentController@createIncidentAction');
Route::get('incidents/template', ['as' => 'dashboard.incident-template', 'uses' => 'DashIncidentController@showAddIncidentTemplate']);
Route::get('incidents/template', ['as' => 'dashboard.incidents.template', 'uses' => 'DashIncidentController@showAddIncidentTemplate']);
Route::post('incidents/template', 'DashIncidentController@createIncidentTemplateAction');
// Metrics

@ -27,8 +27,8 @@
<i class="fa fa-plus"></i> {{ Lang::get('cachet.dashboard.incident-add') }}
</a>
</li>
<li class="sub-nav-item">
<a href="#">
<li class="{{ Request::is('dashboard/incidents/template') ? 'active' : '' }} sub-nav-item">
<a href="{{ URL::route('dashboard.incidents.template') }}">
<i class="fa fa-plus"></i> {{ Lang::get('cachet.dashboard.incident-create-template') }}
</a>
</li>