Skip to content

Commit

Permalink
Merge pull request #2572 from creative-commoners/pulls/4/no-state-no-…
Browse files Browse the repository at this point in the history
…shoes-no-preview

FIX Show 'No preview available' message for pages with no state
  • Loading branch information
Maxime Rainville authored Jun 29, 2021
2 parents 4c8823f + 9d77ff3 commit 973577e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions lang/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -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">
Expand All @@ -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>

0 comments on commit 973577e

Please sign in to comment.