]> BookStack Code Mirror - bookstack/commitdiff
Added note to custom HTML head input
authorDan Brown <redacted>
Mon, 10 Jun 2019 18:54:22 +0000 (19:54 +0100)
committerDan Brown <redacted>
Mon, 10 Jun 2019 18:54:22 +0000 (19:54 +0100)
To warn of being inactive while viewing the settings page.
Closes #1144

resources/lang/en/settings.php
resources/views/settings/index.blade.php

index e6c24f5a14f57a598d8edd48370981c5ad51b471..4685c1ede46eac9b27fa876e47e304fe6ce057c5 100755 (executable)
@@ -29,6 +29,7 @@ return [
     'app_editor_desc' => 'Select which editor will be used by all users to edit pages.',
     'app_custom_html' => 'Custom HTML Head Content',
     'app_custom_html_desc' => 'Any content added here will be inserted into the bottom of the <head> section of every page. This is handy for overriding styles or adding analytics code.',
     'app_editor_desc' => 'Select which editor will be used by all users to edit pages.',
     'app_custom_html' => 'Custom HTML Head Content',
     'app_custom_html_desc' => 'Any content added here will be inserted into the bottom of the <head> section of every page. This is handy for overriding styles or adding analytics code.',
+    'app_custom_html_warning' => 'Custom HTML head content is disabled on this settings page to ensure any breaking changes can be reverted.',
     'app_logo' => 'Application Logo',
     'app_logo_desc' => 'This image should be 43px in height. <br>Large images will be scaled down.',
     'app_primary_color' => 'Application Primary Color',
     'app_logo' => 'Application Logo',
     'app_logo_desc' => 'This image should be 43px in height. <br>Large images will be scaled down.',
     'app_primary_color' => 'Application Primary Color',
index 8d19409dd887c160abda7857e0f92b13183db147..9fccf14480445c52ee2553ca53ce6bd1ba319b7e 100644 (file)
                         <label for="setting-app-custom-head" class="setting-list-label">{{ trans('settings.app_custom_html') }}</label>
                         <p class="small">{{ trans('settings.app_custom_html_desc') }}</p>
                         <textarea name="setting-app-custom-head" id="setting-app-custom-head" class="simple-code-input mt-m">{{ setting('app-custom-head', '') }}</textarea>
                         <label for="setting-app-custom-head" class="setting-list-label">{{ trans('settings.app_custom_html') }}</label>
                         <p class="small">{{ trans('settings.app_custom_html_desc') }}</p>
                         <textarea name="setting-app-custom-head" id="setting-app-custom-head" class="simple-code-input mt-m">{{ setting('app-custom-head', '') }}</textarea>
+                        <p class="small text-right">{{ trans('settings.app_custom_html_warning') }}</p>
                     </div>
 
 
                     </div>