From 7def599141307e9c2c8feb673b77c8fe4711c1e8 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 16 Nov 2013 06:49:47 -0500 Subject: [PATCH] redirect login to assets page by default, removed dashboard link for now --- app/controllers/AuthController.php | 2 +- app/routes.php | 11 +++++++++-- app/views/backend/layouts/default.blade.php | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/app/controllers/AuthController.php b/app/controllers/AuthController.php index d3c309b075..018640ea90 100755 --- a/app/controllers/AuthController.php +++ b/app/controllers/AuthController.php @@ -338,7 +338,7 @@ class AuthController extends BaseController { Sentry::logout(); // Redirect to the users page - return Redirect::route('home')->with('success', 'You have successfully logged out!'); + return Redirect::route('assets')->with('success', 'You have successfully logged out!'); } } diff --git a/app/routes.php b/app/routes.php index 0b132c2601..b38067f699 100755 --- a/app/routes.php +++ b/app/routes.php @@ -10,14 +10,17 @@ */ + Route::group(array('prefix' => 'assets'), function() { + # Assets Route::group(array('prefix' => 'assets'), function() { Route::get('/', array('as' => 'assets', 'uses' => 'Controllers\Admin\AssetsController@getIndex')); + Route::get('assets', array('as' => 'assets', 'uses' => 'Controllers\Admin\AssetsController@getIndex')); Route::get('create', array('as' => 'create/asset', 'uses' => 'Controllers\Admin\AssetsController@getCreate')); Route::post('create', 'Controllers\Admin\AssetsController@postCreate'); Route::get('{assetId}/edit', array('as' => 'update/asset', 'uses' => 'Controllers\Admin\AssetsController@getEdit')); @@ -54,6 +57,7 @@ Route::group(array('prefix' => 'assets'), function() Route::group(array('prefix' => 'admin'), function() { + # Blog Management Route::group(array('prefix' => 'blogs'), function() { @@ -79,6 +83,10 @@ Route::group(array('prefix' => 'admin'), function() }); + // default admin screen until we get a fancy dashboard up + Route::get('/', array('as' => 'assets', 'uses' => 'Controllers\Admin\AssetsController@getIndex')); + + # Admin Settings Routes (for categories, maufactureres, etc) Route::group(array('prefix' => 'settings'), function() { @@ -224,5 +232,4 @@ Route::group(array('prefix' => 'account'), function() | */ - -Route::get('/', array('as' => 'home', 'uses' => 'AuthController@getSignin')); +Route::get('/', array('as' => 'home', 'uses' => 'Controllers\Admin\AssetsController@getIndex')); diff --git a/app/views/backend/layouts/default.blade.php b/app/views/backend/layouts/default.blade.php index 1bbca0d2a8..3973f650fe 100755 --- a/app/views/backend/layouts/default.blade.php +++ b/app/views/backend/layouts/default.blade.php @@ -69,8 +69,8 @@ @if (Sentry::check()) - Dashboard - Assets + + Assets Models People Licenses