diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index d2c8fe25d8..1557991c01 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -396,6 +396,7 @@ class SettingsController extends Controller $setting->brand = $request->input('brand', '1'); $setting->header_color = $request->input('header_color'); $setting->support_footer = $request->input('support_footer'); + $setting->version_footer = $request->input('version_footer'); $setting->footer_text = $request->input('footer_text'); $setting->skin = $request->input('skin'); $setting->show_url_in_emails = $request->input('show_url_in_emails', '0'); diff --git a/database/migrations/2018_06_21_134622_add_version_footer.php b/database/migrations/2018_06_21_134622_add_version_footer.php new file mode 100755 index 0000000000..cb40cd6c3a --- /dev/null +++ b/database/migrations/2018_06_21_134622_add_version_footer.php @@ -0,0 +1,29 @@ +char('version_footer', 5)->nullable()->default('on'); + }); + } + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('settings', function (Blueprint $table) { + $table->dropColumn('version_footer'); + }); + } +} diff --git a/resources/lang/en/admin/settings/general.php b/resources/lang/en/admin/settings/general.php index 753fbb0d71..281fa0d5cb 100644 --- a/resources/lang/en/admin/settings/general.php +++ b/resources/lang/en/admin/settings/general.php @@ -122,6 +122,8 @@ return array( 'snipe_version' => 'Snipe-IT version', 'support_footer' => 'Support Footer Links ', 'support_footer_help' => 'Specify who sees the links to the Snipe-IT Support info and Users Manual', + 'version_footer' => 'Version in Footer ', + 'version_footer_help' => 'Specify who sees the Snipe-IT version and build number.', 'system' => 'System Information', 'update' => 'Update Settings', 'value' => 'Value', diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php index 31e219b1c6..884a69b139 100644 --- a/resources/views/layouts/default.blade.php +++ b/resources/views/layouts/default.blade.php @@ -741,7 +741,11 @@