new_topic_forbidden_page.naml

<override_macro name="new_topic_forbidden_page">
    <n.set_var name="has_descendants_where_can_reply" value="[n.false/]" />
    <n.page_node.descendant_apps_list.loop.>
        <n.if.visitor.can_create_topic_in.current_node>
            <then>
                <n.set_var name="has_descendants_where_can_reply" value="[n.true/]" />
                <n.break/>
            </then>
        </n.if.visitor.can_create_topic_in.current_node>
    </n.page_node.descendant_apps_list.loop.>
    <n.html>
        <head>
            <META NAME="robots" CONTENT="noindex,nofollow"/>
            <n.title.>
                <n.if.var name="has_descendants_where_can_reply">
                    <then><t>Choose a Subcategory</t></then>
                    <else><t>Authorized Users Only</t></else>
                </n.if.var>
            </n.title.>
        </head>
        <body>
            <div style="font-size:140%;margin:.5em 0 1em">
                <n.if.var name="has_descendants_where_can_reply">
                    <then><t>Choose a subcategory to post your message</t></then>
                    <else><t>You Cannot Post Here</t></else>
                </n.if.var>
            </div>
            <n.if.var name="has_descendants_where_can_reply">
                <then>
                    <n.page_node.descendant_apps_list.loop.>
                        <n.if.visitor.can_create_topic_in.current_node>
                            <then>
                                <div style="margin:.3em"><n.current_node.new_topic_link text="[n.subject/]" /></div>
                            </then>
                        </n.if.visitor.can_create_topic_in.current_node>
                    </n.page_node.descendant_apps_list.loop.>
                </then>
                <else>
                    This is a read-only archive.
                </else>
            </n.if.var>
        </body>
    </n.html>
    <n.exit/>
</override_macro>