X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/4cb4c9e56814d22c33a5955561ee6c05d1e2efbc..refs/pull/846/head:/resources/views/settings/index.blade.php diff --git a/resources/views/settings/index.blade.php b/resources/views/settings/index.blade.php index 18d8b1307..51ca8ccb4 100644 --- a/resources/views/settings/index.blade.php +++ b/resources/views/settings/index.blade.php @@ -13,7 +13,7 @@
-

{{ trans('settings.app_settings') }}

+

@icon('settings') {{ trans('settings.app_settings') }}

{!! csrf_field() !!} @@ -38,6 +38,11 @@

{{ trans('settings.app_secure_images_desc') }}

@include('components.toggle-switch', ['name' => 'setting-app-secure-images', 'value' => setting('app-secure-images')])
+
+ +

{{ trans('settings.app_disable_comments_desc') }}

+ @include('components.toggle-switch', ['name' => 'setting-app-disable-comments', 'value' => setting('app-disable-comments')]) +

{{ trans('settings.app_editor_desc') }}

@@ -68,8 +73,13 @@

{!! trans('settings.app_primary_color_desc') !!}

- - + + +
+
+ +

{{ trans('settings.app_homepage_desc') }}

+ @include('components.page-picker', ['name' => 'setting-app-homepage', 'placeholder' => trans('settings.app_homepage_default'), 'value' => setting('app-homepage')])
@@ -78,7 +88,7 @@

{{ trans('settings.app_custom_html_desc') }}

- +
@@ -91,7 +101,7 @@

 

-

{{ trans('settings.reg_settings') }}

+

@icon('users-add') {{ trans('settings.reg_settings') }}

{!! csrf_field() !!} @@ -140,6 +150,7 @@
@include('components.image-manager', ['imageType' => 'system']) +@include('components.entity-selector-popup', ['entityTypes' => 'page']) @stop @@ -152,6 +163,7 @@ var hexVal = '#' + this.color.colors.HEX; var rgb = this.color.colors.RND.rgb; var rgbLightVal = 'rgba('+ [rgb.r, rgb.g, rgb.b, '0.15'].join(',') +')'; + // Set textbox color to hex color code. var isEmpty = $.trim($elm.val()).length === 0; if (!isEmpty) $elm.val(hexVal);