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