Merge pull request #2572 from creative-commoners/pulls/4/no-state-no-shoes-no-preview

FIX Show 'No preview available' message for pages with no state
This commit is contained in:
Maxime Rainville 2021-06-29 13:44:06 +12:00 committed by GitHub
commit 973577e9f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -19,7 +19,7 @@
}
],
"require": {
"silverstripe/admin": "^1.7@dev",
"silverstripe/admin": "^1.9@dev",
"silverstripe/campaign-admin": "^1.7@dev",
"silverstripe/framework": "^4.7@dev",
"silverstripe/reports": "^4.7@dev",

View File

@ -83,6 +83,7 @@ en:
MENUTITLE: History
MULTISELECT: 'Batch actions'
NOTPUBLISHED: 'Not published'
NO_PREVIEW: 'No preview available'
PREVIEW: 'Website preview'
PUBLISHER: Publisher
REVERTTOTHISVERSION: 'Revert to this version'

View File

@ -1,6 +1,9 @@
<div class="cms-preview fill-height flexbox-area-grow" data-layout-type="border">
<div class="panel flexbox-area-grow fill-height">
<div class="preview-note"><span><!-- --></span><%t SilverStripe\CMS\Controllers\CMSPageHistoryController.PREVIEW 'Website preview' %></div>
<div class="preview-note">
<div class="icon font-icon-monitor display-1"></div>
<%t SilverStripe\CMS\Controllers\CMSPageHistoryController.NO_PREVIEW 'No preview available' %>
</div>
<div class="preview__device">
<div class="preview-device-outer">
<div class="preview-device-inner">
@ -10,5 +13,4 @@
</div>
</div>
<div class="toolbar toolbar--south cms-content-controls cms-preview-controls"></div>
<div class="cms-preview-overlay ui-widget-overlay-light"></div>
</div>