From 76e233de705c936e8cee6990ea28469fa661ee30 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 9 Jan 2013 21:43:10 +0100 Subject: [PATCH] Only show preview switch if states are available We've removed all states from RedirectorPage in order to disable the redirect. --- .../LeftAndMain_SilverStripeNavigator.ss | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/admin/templates/Includes/LeftAndMain_SilverStripeNavigator.ss b/admin/templates/Includes/LeftAndMain_SilverStripeNavigator.ss index e75488f2d..c80f555f5 100644 --- a/admin/templates/Includes/LeftAndMain_SilverStripeNavigator.ss +++ b/admin/templates/Includes/LeftAndMain_SilverStripeNavigator.ss @@ -19,25 +19,27 @@ - <% if Items.Count < 5 %> -
-
- <% loop Items %> - checked<% end_if %>> - - <% end_loop %> - -
-
- <% else %> - - - + <% if Items %> + <% if Items.Count < 5 %> +
+
+ <% loop Items %> + checked<% end_if %>> + + <% end_loop %> + +
+
+ <% else %> + + + + <% end_if %> <% end_if %> \ No newline at end of file