Improved message after update

This commit is contained in:
Hillel Coren 2016-05-23 09:18:39 +03:00
parent 86240affab
commit f19058e35e
2 changed files with 7 additions and 2 deletions

View File

@ -268,7 +268,12 @@ class AppController extends BaseController
Artisan::call('migrate', array('--force' => true));
Artisan::call('db:seed', array('--force' => true, '--class' => "UpdateSeeder"));
Event::fire(new UserSettingsChanged());
Session::flash('message', trans('texts.processed_updates'));
// show message with link to Trello board
$message = trans('texts.see_whats_new', ['version' => NINJA_VERSION]);
$message = link_to(RELEASES_URL, $message, ['target' => '_blank']);
$message = sprintf('%s - %s', trans('texts.processed_updates'), $message);
Session::flash('warning', $message);
} catch (Exception $e) {
Utils::logError($e);
return Response::make($e->getMessage(), 500);

View File

@ -1310,7 +1310,7 @@ $LANG = array(
'original_start_date' => 'Original start date',
'new_start_date' => 'New start date',
'security' => 'Security',
'see_whats_new' => 'See what\'s new in v:version',
);
return $LANG;