diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 4bc9b7444d..807f5466f8 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -317,6 +317,7 @@ class SettingsController extends Controller $setting->full_multiple_companies_support = $request->input('full_multiple_companies_support', '0'); $setting->load_remote = $request->input('load_remote', '0'); $setting->show_archived_in_list = $request->input('show_archived_in_list', '0'); + $setting->dashboard_message = $request->input('dashboard_message'); $setting->email_domain = $request->input('email_domain'); $setting->email_format = $request->input('email_format'); $setting->username_format = $request->input('username_format'); diff --git a/database/migrations/2018_01_19_203121_add_dashboard_message_to_settings.php b/database/migrations/2018_01_19_203121_add_dashboard_message_to_settings.php new file mode 100644 index 0000000000..89e0cd2f2f --- /dev/null +++ b/database/migrations/2018_01_19_203121_add_dashboard_message_to_settings.php @@ -0,0 +1,32 @@ +text('dashboard_message')->nullable()->default(null); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('settings', function (Blueprint $table) { + $table->text('dashboard_message'); + }); + } +} diff --git a/resources/lang/en/admin/settings/general.php b/resources/lang/en/admin/settings/general.php index c68e1d3bb6..76159635b1 100644 --- a/resources/lang/en/admin/settings/general.php +++ b/resources/lang/en/admin/settings/general.php @@ -25,6 +25,8 @@ return array( 'custom_css_help' => 'Enter any custom CSS overrides you would like to use. Do not include the <style></style> tags.', 'custom_forgot_pass_url' => 'Custom Password Reset URL', 'custom_forgot_pass_url_help' => 'This replaces the built-in forgotten password URL on the login screen, useful to direct people to internal or hosted LDAP password reset functionality. It will effectively disable local user forgotten password functionality.', + 'dashboard_message' => 'Dashboard Message', + 'dashboard_message_help' => 'This text will appear on the dashboard for anyone with permission to view the dashboard.', 'default_currency' => 'Default Currency', 'default_eula_text' => 'Default EULA', 'default_language' => 'Default Language', diff --git a/resources/lang/en/general.php b/resources/lang/en/general.php index 94acace65a..f34e34c1d4 100644 --- a/resources/lang/en/general.php +++ b/resources/lang/en/general.php @@ -85,6 +85,7 @@ 'file_name' => 'File', 'file_uploads' => 'File Uploads', 'generate' => 'Generate', + 'github_markdown' => 'This field accepts Github flavored markdown.', 'groups' => 'Groups', 'gravatar_email' => 'Gravatar Email Address', 'history' => 'History', diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 39f2bcda1b..ba74a49b84 100755 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -10,6 +10,17 @@ {{-- Page content --}} @section('content') +@if ($snipeSettings->dashboard_message!='') +