subapp_section.naml

<override_macro name="subapp_section" requires="node" dot_parameter="columns" parameters="length">
    <tr class="header-row category-row shaded-bg-color">
        <n.table_header.>
            <n.columns/>
        </n.table_header.>
    </tr>
    <n.if.has_children>
        <then>
            <n.children_list. length="[n.length/]">
                <n.loop.>
                    <n.if.current_node.can_be_viewed_by_visitor>
                        <then>
                            <tr class="main-row">
                                <n.columns/>
                            </tr>
                        </then>
                    </n.if.current_node.can_be_viewed_by_visitor>      

                </n.loop.>
                <n.set_var. name="has_more_rows"><n.there_is_more/></n.set_var.>
            </n.children_list.>
            <n.subapp_section_extra_row has_more="[n.var name='has_more_rows'/]"/>
        </then>
        <else.subapp_section_extra_row has_more="[n.false/]"/>
    </n.if.has_children>
</override_macro>