X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/80865b30a5d6a82e86d21e272ae58977d4430a64..refs/pull/262/head:/resources/views/settings/index.blade.php diff --git a/resources/views/settings/index.blade.php b/resources/views/settings/index.blade.php index 4274378e6..c736bc24e 100644 --- a/resources/views/settings/index.blade.php +++ b/resources/views/settings/index.blade.php @@ -4,57 +4,95 @@ @include('settings/navbar', ['selected' => 'settings']) -
+
-

Settings

+

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

-
+ {!! csrf_field() !!} -

App Settings

+

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

+
- - + +

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

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

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

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

For performance reasons, all images are public by default, This option adds a random, hard-to-guess characters in front of image names. Ensure directory indexes are not enabled to prevent easy access.

- + +

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

+
+
- -

This image should be 43px in height.
Large images will be scaled down.

- + +

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

+ + @include('components.image-picker', [ + 'resizeHeight' => '43', + 'resizeWidth' => '200', + 'showRemove' => true, + 'defaultImage' => baseUrl('/logo.png'), + 'currentImage' => setting('app-logo'), + 'name' => 'setting-app-logo', + 'imageClass' => 'logo-image', + 'currentId' => false + ]) + +
+
+ +

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

+ +
-
+
+
+ +

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

+ +

-

Registration Settings

+

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

+
- - + + @include('components.toggle-switch', ['name' => 'setting-registration-enabled', 'value' => setting('registration-enabled')])
- +
- -

If domain restriction is used then email confirmation will be required and the below value will be ignored.

- + +

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

+ @include('components.toggle-switch', ['name' => 'setting-registration-confirmation', 'value' => setting('registration-confirmation')])
- -

Enter a comma separated list of email domains you would like to restrict registration to. Users will be sent an email to confirm their address before being allowed to interact with the application. -
Note that users will be able to change their email addresses after successful registration.

- + +

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

+
@@ -80,12 +117,43 @@
- + + BookStack @if(strpos($version, 'v') !== 0) version @endif {{ $version }} + +
-@include('partials/image-manager', ['imageType' => 'system']) +@include('components.image-manager', ['imageType' => 'system']) @stop + +@section('scripts') + + +@stop \ No newline at end of file