mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
4461cae31b
ENHANCEMENT New "preview" and "edit" buttons to toggle between preview and cms views. Reinstated utility links to switch between draft and live preview (based on SilverStripeNavigator) (formerly called "AjaxSwitchView")
13 lines
476 B
Scheme
13 lines
476 B
Scheme
<div class="cms-navigator">
|
|
<a href="#" class="ss-ui-button ss-ui-button-small cms-preview-toggle-link">
|
|
« <% _t('SilverStripeNavigator.Edit', 'Edit') %>
|
|
</a>
|
|
<ul class="cms-preview-states">
|
|
<% control Items %>
|
|
<li class="$Class<% if isActive %> active<% end_if %>">$HTML</li>
|
|
<% end_control %>
|
|
</ul>
|
|
<a href="$Record.Link" target="_blank" class="cms-preview-popup-link">
|
|
<% _t('SilverStripeNavigator.OpenNewWindow', 'Open in new window') %>
|
|
</a>
|
|
</div> |