#set($globalSettings = $settingsManager.globalSettings) #set ($spaceKey = $!sitemeshPage.getProperty("page.spacekey")) ## Deprecated since 3.4. To be removed in a future version of Confluence; use AJS.Confluence.getContextPath() ## Deprecated since 4.0. Use AJS.Meta.get("atl-token") instead. #if ($clusterNodeId) #end #if ($clusterNodeName) #end #if ($spaceKey) #end #if ($systemProperties.ajsLogRendered || $applicationConfig.getBooleanProperty('ajs.log.rendered')) #end #if ($systemProperties.ajsLogVisible || $applicationConfig.getBooleanProperty('ajs.log.visible')) #end ## todo refactor this out - should only be included where needed #requireResource("confluence.web.resources:atlassian-effects") #if (!$sitemeshPage.getProperty("page.allowindex")) #end #if ($req.getAttribute("Confluence-Request-Time")) #end #trim() ## AJS.Meta data that should be available to all Confluence pages. #putMetadata('context-path', $req.contextPath) #putMetadata('base-url', $globalSettings.baseUrl) #putMetadata('version-number', $generalUtil.versionNumber) #putMetadata('build-number', $generalUtil.buildNumber) #putMetadata('remote-user', $!action.authenticatedUser.name) #putMetadata('remote-user-key', $!action.authenticatedUser.key.stringValue) #putMetadata('remote-user-has-licensed-access', $action.userHasLicensedAccess) #putMetadata('current-user-fullname', $!action.authenticatedUser.fullName) ## userProfilePicUrl is deprecated - so is current-user-avatar-url #putMetadata('current-user-avatar-url', $!action.userProfilePicUrl) #putMetadata('current-user-avatar-uri-reference', $userAvatarUriReference) #putMetadata('static-resource-url-prefix', $staticResourceUrlPrefix) #putMetadata('global-settings-attachment-max-size', $globalSettings.attachmentMaxSize) #putMetadata('user-locale', $action.locale) #putMetadata('enabled-dark-features', $darkFeatures.allEnabledFeaturesAsString) #putMetadata('atl-token', $xsrfTokenGenerator.generateToken($req)) #putMetadata('confluence-flavour', $confluenceFlavour) #putMetadata('user-date-pattern', $action.userLocaleDefaultDatePattern) #putMetadata('access-mode', $action.accessMode) #putMetadata('render-mode', $action.accessMode) #end ## Deprecated since 3.4. To be removed in a future version of Confluence; use atl.header #webPanelForLocation("atl.confluence.header" $action.context) ## CONF-28933: spaceKey needs to be added to the context for SpaceSidebarCondition #set($extendedContext = $action.context) #set($dummyResult = $extendedContext.put("spacekey", $spaceKey)) #webPanelForLocation("atl.header" $extendedContext) ## Render metadata after header panels to give the panels a chance to add more metadata. #renderMetadata() #favicon() #if ($globalSettings.enableOpenSearch) #end #if ($sitemeshPage.getProperty("page.rssautodiscovery")) $sitemeshPage.getProperty("page.rssautodiscovery") #end #if ($sitemeshPage.getProperty("page.headsection")) $sitemeshPage.getProperty("page.headsection") #end #if ($webResourceHelper) $webResourceHelper.getConfluenceResourceTags($stylesheetAction, $spaceKey) #end #flushResponse() #webPanelForLocation("atl.header.after.scripts" $extendedContext) ## Any remaining contents of the from the decorated page, provided by SiteMesh $!head