#set ($helper = $params.get("helper")) #* If the action passes selectedSpaceToolsWebItem as a parameter, we use this one. If the action doesn't, we take the cookie. For each tab, we use the first web-item of the section as a link. *# #if ($space && $action.getThemeManager().getSpaceTheme($space.key).hasSpaceSideBar()) #set ($selectedSpaceToolsWebItem = $params.get("selectedSpaceToolsWebItem")) #if (!$selectedSpaceToolsWebItem || $stringUtils.isBlank($selectedSpaceToolsWebItem)) #set ($lastWebItemClicked = $helper.lastWebItemClicked) #set ($lastWebSectionClicked = $helper.lastWebSectionClicked) #set ($selectedSpaceToolsWebItem = $lastWebItemClicked) #end #set ($spaceToolsTabs = $spaceToolsTabsHelper.getNavigation($action, $selectedSpaceToolsWebItem)) #set ($canAdministerSpace = $permissionHelper.canAdminister($action.authenticatedUser, $action.space)) #set($secondLevelNavigation = $spaceToolsTabs.getSecondLevelNavigation()) #if ($secondLevelNavigation && $secondLevelNavigation.size() > 0)
## Need an empty div here to prevent AUI page layout styles from being applied, they are of the form #content > .aui-tabs ... ## the extra div stops the direct descendant selector from matching and prevents the unwanted page layout style from being applied
## An empty pane needed because it contains the CSS styles for the bottom border of the tabs ## without it, the tabs have no horizontal line underneath them
#else

#end #end ## If it's not using the Space IA, dont display the tabs, but still show the contents
$body
#if ($space) $webwork.htmlEncode($space.name) $space.key true #end