app_page.naml
<override_macro name="view_app" requires="servlet,nabble,basic">
<n.if.is_home>
<then.view_homepage/>
<else.if.equal value1="[n.get_node_from_parameter.type/]" value2="news">
<then.view_news/>
<else.view_mixed/>
</else.if.equal>
</n.if.is_home>
</override_macro>
<override_macro name="app_body_header" requires="node_page,servlet">
</override_macro>
<override_subroutine name="view_mixed" requires="basic,nabble,servlet">
<n.app_html>
<head>
<n.app_title/>
<n.mixed_table_stylesheet/>
</head>
<body>
<div style="padding:.5em .5em 2em">
<n.page_node.>
<n.node_message_as_html/>
<n.list_child_topics section_title="Articles"/>
<n.subapps_list.loop.>
<n.set_local_node.current_node/>
<n.local_node.list_child_topics section_title="[n.local_node.subject/]"/>
</n.subapps_list.loop.>
</n.page_node.>
</div>
</body>
</n.app_html>
</override_subroutine>
<macro name="list_child_topics" parameters="section_title" requires="node">
<n.children_list. start="0" length="100" sort="pinned-and-root-node-date" filter="[n.post_filter/]">
<n.if.not.list_is_empty>
<then>
<h2><n.section_title/></h2>
<div style="margin:0 0 1.5em 2em;">
<n.loop.>
<div style="padding:.3em 0">
<n.current_node.node_link/>
</div>
</n.loop.>
</div>
</then>
</n.if.not.list_is_empty>
</n.children_list.>
</macro>