<#ftl output_format="HTML"> <#import "sidebar_macros.html" as pending> <@cTpl>
Menu
<#if space?? && !(is_module_ai_present?? && is_module_ai_present)>
<#macro flattenSpaceChildren children editRights depth=0> <#list children as child> <#assign hasEditRights = editRights?? && editRights[child.id?c]?? && editRights[child.id?c]> <#assign pendingCount = (pending_counts?? && pending_counts[child.id?c]??)?then(pending_counts[child.id?c], 0)> <#if child.type.code == "category"> <#assign category = child> <#if (category.children?? && category.children?has_content) || hasEditRights> <#if category.children?? && category.children?has_content> <@flattenSpaceChildren children=category.children editRights=editRights depth=depth+1 /> <#elseif child.type.code == "book"> <#elseif child.type.code == "page"> <#if space_children?has_content>
<#if space??> <#assign rootPendingCount = (pending_counts?? && pending_counts[space.id?c]??)?then(pending_counts[space.id?c], 0)> <@flattenSpaceChildren children=space_children editRights=space_children_edit_rights!{} depth=1 />
<#elseif can_edit?? && can_edit && space??>
#i18n{wiki.sidebar.emptySpace.title} #i18n{wiki.sidebar.emptySpace.message}