silverstripe-framework/admin/templates/Includes/LeftAndMain_SilverStripeNavigator.ss
Ingo Schommer 4461cae31b ENHANCEMENT New CMSPreviewable interface class to standardize metadata making a record previewable by the CMS.
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")
2011-08-12 17:05:50 +02:00

13 lines
476 B
Scheme

<div class="cms-navigator">
<a href="#" class="ss-ui-button ss-ui-button-small cms-preview-toggle-link">
&laquo; <% _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>