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<br />(new registrants, see <a href="http://radishrain.321.s1.nabble.com/Getting-started-td600.html">Getting started</a>)</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>
                    <t>Sorry, but you can't create new topics here.<br/>Note that you may still be able to reply to posts.</t>
                    <br/><br/>
                    <n.if.visitor.is_site_admin>
                        <then><t><b>Note</b>: Since you are an administrator, you can <n.page_node.change_permissions_link.>change the permissions of <t.location.page_node.subject/></n.page_node.change_permissions_link.> and make sure you can create new topics here.</t></then>
                        <else><t>You may <n.page_node.unauthorized_link.>request permission to post</n.page_node.unauthorized_link.> here or contact <n.root_node.owner.send_email_link.><n.root_node.owner.name/></n.root_node.owner.send_email_link.> if you have questions.</t></else>
                    </n.if.visitor.is_site_admin>
                </else>
            </n.if.var>
        </body>
    </n.html>
    <n.exit/>
</override_macro>