#* @vtlvariable name="currentThemeDescriptor" type="com.atlassian.confluence.plugin.descriptor.ThemeModuleDescriptor" *#
#if ($action.getClass().getName() == "com.atlassian.confluence.admin.actions.lookandfeel.ChooseThemeAction")
#set ($isGlobalAdmin = true)
#else
#set ($isGlobalAdmin = false)
#end
#macro(themeIcon $themeDescriptor)
#if ($action.hasIcon($themeDescriptor))
#foreach($resource in $themeDescriptor.getResourceDescriptors('download'))
## we must have at least 1 themeicon.gif resource since hasIcon returned true:
#if ($resource.name == "themeicon.gif")
#if($resource.location.startsWith("http://"))
#set($iconSrc = $resource.location)
#else
#set($iconSrc =
"$req.contextPath/download/resources/$themeDescriptor.completeKey/themeicon.gif")
#end
#end
#end
#else
#set($iconSrc = "$staticResourceUrlPrefix/images/themes/no-icon.gif")
#end
#end
$action.getText('current.theme.desc')
#if ($currentThemeDescriptor)#themeIcon($currentThemeDescriptor) |
#if ($currentThemeDescriptor.descriptionKey) $action.getText($currentThemeDescriptor.descriptionKey, $!currentThemeDescriptor.description) #else $!currentThemeDescriptor.description #end |
$action.getText('theme.configure') $action.getText('theme.configure.desc')
![]() |
#if ($isGlobalAdmin) $action.getText("global.theme.default.desc") #else $action.getText("theme.default.desc") #end |
$action.getText('theme.select.desc')
#if ($currentThemeDescriptor)
![]() |
#if ($isGlobalAdmin) $action.getText("global.theme.default.desc") #else $action.getText("theme.default.desc") #end |
#themeIcon($theme) |
#if ($theme.descriptionKey) $action.getText($theme.descriptionKey, $!theme.description) #else $!theme.description #end |