mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
Updated tests to suit layout changes, Updated 404 page
- Also replaced 'or' usage in templates with null coalescing operator
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
</div>
|
||||
|
||||
@if(userCan('attachment-create-all'))
|
||||
<div toolbox-tab-content="files" id="attachment-manager" page-id="{{ $page->id or 0 }}">
|
||||
<div toolbox-tab-content="files" id="attachment-manager" page-id="{{ $page->id ?? 0 }}">
|
||||
<h4>{{ trans('entities.attachments') }}</h4>
|
||||
<div class="padded files">
|
||||
|
||||
|
@ -3,10 +3,10 @@
|
||||
drafts-enabled="{{ $draftsEnabled ? 'true' : 'false' }}"
|
||||
drawio-enabled="{{ config('services.drawio') ? 'true' : 'false' }}"
|
||||
editor-type="{{ setting('app-editor') }}"
|
||||
page-id="{{ $model->id or 0 }}"
|
||||
page-id="{{ $model->id ?? 0 }}"
|
||||
text-direction="{{ config('app.rtl') ? 'rtl' : 'ltr' }}"
|
||||
page-new-draft="{{ $model->draft or 0 }}"
|
||||
page-update-draft="{{ $model->isDraft or 0 }}">
|
||||
page-new-draft="{{ $model->draft ?? 0 }}"
|
||||
page-update-draft="{{ $model->isDraft ?? 0 }}">
|
||||
|
||||
{{ csrf_field() }}
|
||||
|
||||
|
Reference in New Issue
Block a user