mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Only show preview switch if states are available
We've removed all states from RedirectorPage in order to disable the redirect.
This commit is contained in:
parent
80ee913f26
commit
76e233de70
@ -19,6 +19,7 @@
|
||||
</select>
|
||||
</span>
|
||||
|
||||
<% if Items %>
|
||||
<% if Items.Count < 5 %>
|
||||
<fieldset id="preview-states" class="cms-preview-states switch-states size_{$Items.Count}">
|
||||
<div class="switch">
|
||||
@ -40,4 +41,5 @@
|
||||
</select>
|
||||
</span>
|
||||
<% end_if %>
|
||||
<% end_if %>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user