NEW Hide subsite selector dropdown if no subsites have been created yet

Note that "Main site" is always included in the list of subsites, even though it is not an actual record
This commit is contained in:
Robbie Averill 2018-06-19 15:51:33 +12:00
parent aae3e655c4
commit 21f4d80ef2

View File

@ -5,7 +5,7 @@
<% include SilverStripe\\Admin\\LeftAndMain_MenuLogo %>
<% include SilverStripe\\Admin\\LeftAndMain_MenuStatus %>
<% if $ListSubsites %>
<% if $ListSubsites.Count > 1 %>
<% include SilverStripe\\Subsites\\Controller\\SubsiteXHRController_subsitelist %>
<% end_if %>
</div>