mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-29 13:42:38 +00:00
Added an option to set books as the default homepage.
Signed-off-by: Abijeet <abijeetpatro@gmail.com>
This commit is contained in:
parent
b0d027a4a9
commit
2e4863edb1
@ -9,6 +9,8 @@
|
|||||||
color: #666;
|
color: #666;
|
||||||
width: 250px;
|
width: 250px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
margin: 6px 6px 6px 0px;
|
||||||
|
|
||||||
&.neg, &.invalid {
|
&.neg, &.invalid {
|
||||||
border: 1px solid $negative;
|
border: 1px solid $negative;
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,7 @@ return [
|
|||||||
'app_homepage' => 'Application Homepage',
|
'app_homepage' => 'Application Homepage',
|
||||||
'app_homepage_desc' => 'Select a page to show on the homepage instead of the default view. Page permissions are ignored for selected pages.',
|
'app_homepage_desc' => 'Select a page to show on the homepage instead of the default view. Page permissions are ignored for selected pages.',
|
||||||
'app_homepage_default' => 'Default homepage view chosen',
|
'app_homepage_default' => 'Default homepage view chosen',
|
||||||
|
'app_homepage_books' => 'Or select the books page as your homepage. This will override any page selected as your homepage.',
|
||||||
'app_disable_comments' => 'Disable comments',
|
'app_disable_comments' => 'Disable comments',
|
||||||
'app_disable_comments_desc' => 'Disable comments across all pages in the application. Existing comments are not shown.',
|
'app_disable_comments_desc' => 'Disable comments across all pages in the application. Existing comments are not shown.',
|
||||||
|
|
||||||
|
@ -80,6 +80,8 @@
|
|||||||
<label for="setting-app-homepage">{{ trans('settings.app_homepage') }}</label>
|
<label for="setting-app-homepage">{{ trans('settings.app_homepage') }}</label>
|
||||||
<p class="small">{{ trans('settings.app_homepage_desc') }}</p>
|
<p class="small">{{ trans('settings.app_homepage_desc') }}</p>
|
||||||
@include('components.page-picker', ['name' => 'setting-app-homepage', 'placeholder' => trans('settings.app_homepage_default'), 'value' => setting('app-homepage')])
|
@include('components.page-picker', ['name' => 'setting-app-homepage', 'placeholder' => trans('settings.app_homepage_default'), 'value' => setting('app-homepage')])
|
||||||
|
<p class="small">{{ trans('settings.app_homepage_books') }}</p>
|
||||||
|
@include('components.toggle-switch', ['name' => 'setting-app-book-homepage', 'value' => setting('app-book-homepage')])
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user