reply

NAML documentation   Watch a video
   Usages of this macro
... in expire_old_threads.naml
1
2
3
4
5
6
7
8
<override_macro name="reply" requires="servlet">
    <n.node_page
Macro
Requires: servlet
Parameters: do
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.when_created
Binary
Namespace: NodeNamespace
Parameters: do
.is_older_than
Binary
Namespace: DateNamespace
Parameters: days
 days="[n.thread_expiration_days
Macro
/]">
            <then.redirect_to
Binary
Namespace: ServletNamespace
Parameters: url
.expired_thread_page_path
Macro
Requires: node_page
/>
            <else.overridden/>
        </n.if.page_node.when_created.is_older_than>
    </n.node_page.>
</override_macro>
Overrides default macro
... in reply.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<macro name="reply" requires="servlet">
    <n.new_post
Macro
Requires: servlet
Parameters: bottom, page_name, focus, mailing_list_etiquette
>
        <page_name>
            <t>Reply</t>
        </page_name>
        <focus>
            <n.message_field
Macro
Parameters: do
.focus
Macro
Requires: field
/>
        </focus>
        <mailing_list_etiquette>
            <li><t>Quote what you reply to and trim it to only the relevant parts. This provides context for those who will read your message by email.</t></li>
            <li><t>Avoid small talk such as "Thank you", "Great"... You can <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.reply_to_author_link
Macro
Requires: node
Parameters: text, title, class
.>send a private email</n.page_node.reply_to_author_link.> if you want.</t></li>
        </mailing_list_etiquette>
        <bottom>
            <n.in_reply_to
Macro
/>
        </bottom>
    </n.new_post>
</macro>