topic_contents

NAML documentation   Watch a video
   Usages of this macro
... in topic.naml
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
<macro name="topic_contents" dot_parameter="contents" requires="blog_topic_namespace">
    <div id="comment-section">
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.has_replies
Binary
Namespace: NodeNamespace
>
            <then>
                <h2 class="second-font big-title" style="margin-bottom: .5em">
                    <n.one_or_many
Macro
Parameters: many_text, one_text, n
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.replies
Binary
Namespace: NodeNamespace
>
                        <one_text><t>Comment</t></one_text>
                        <many_text><t>Comments</t></many_text>
                    </n.one_or_many.page_node.replies>
                </h2>
                <n.view_selectors
Macro
/>
            </then>
        </n.if.page_node.has_replies>
 
        <n.topic_contents_div
Macro
Parameters: contents
.contents/>
 
        <n.add_new_comment_link
Macro
/>
    </div>
</macro>