new_topic_forbidden_page

NAML documentation   Watch a video
   Usages of this macro
... in reply.naml
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
<macro name="new_topic_forbidden_page">
    <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
 name="has_descendants_where_can_reply" value="[n.false
Binary
Namespace: BasicNamespace
/]" />
    <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.descendant_apps_list
Binary
Namespace: NodeNamespace
Parameters: do
.loop
Macro
Requires: sequence
Parameters: by, do
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_create_topic_in
Macro
Requires: user
Parameters: node_attr
.current_node
Binary
Namespace: NodeList
Parameters: do
>
            <then>
                <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
 name="has_descendants_where_can_reply" value="[n.true
Binary
Namespace: BasicNamespace
/]" />
                <n.break
Binary
Namespace: BasicNamespace
/>
            </then>
        </n.if.visitor.can_create_topic_in.current_node>
    </n.page_node.descendant_apps_list.loop.>
    <n.html
Macro
Parameters: head, body
>
        <head>
            <META NAME="robots" CONTENT="noindex,nofollow"/>
            <n.title
Macro
Parameters: text
.>
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.var
Binary
Namespace: BasicNamespace
Parameters: name
 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
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.var
Binary
Namespace: BasicNamespace
Parameters: name
 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
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.var
Binary
Namespace: BasicNamespace
Parameters: name
 name="has_descendants_where_can_reply">
                <then>
                    <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.descendant_apps_list
Binary
Namespace: NodeNamespace
Parameters: do
.loop
Macro
Requires: sequence
Parameters: by, do
.>
                        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_create_topic_in
Macro
Requires: user
Parameters: node_attr
.current_node
Binary
Namespace: NodeList
Parameters: do
>
                            <then>
                                <div style="margin:.3em"><n.current_node
Binary
Namespace: NodeList
Parameters: do
.new_topic_link
Macro
Requires: node
Parameters: href, text, title, class
 text="[n.subject
Macro
Requires: node
/]" /></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
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.is_site_admin
Macro
Requires: user
>
                        <then><t><b>Note</b>: Since you are an administrator, you can <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.change_permissions_link
Macro
Requires: node
Parameters: text, title, class
.>change the permissions of <t.location.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/></n.page_node.change_permissions_link.> and make sure you can create new topics here.</t></then>
                        <else><t>You may <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.unauthorized_link
Macro
Requires: node
Parameters: text, title, class
.>request permission to post</n.page_node.unauthorized_link.> here or contact <n.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.owner
Binary
Namespace: NodeNamespace
Parameters: do
.send_email_link
Macro
Requires: user
Parameters: text, title, class
.><n.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.owner
Binary
Namespace: NodeNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
/></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
Binary
Namespace: BasicNamespace
/>
</macro>