view_contents

NAML documentation   Watch a video
   Usages of this macro
... in view_contents.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
<override_macro name="view_contents" dot_parameter="rows" requires="classic_view_namespace">
    <div id="classic-contents">
        <n.classic_pagination
Macro
Parameters: margin, row_count
 margin="0 .2em .5em" row_count="[n.classic_row_count
Macro
Requires: blog_topic_namespace
/]" />
        <n.rows/>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.is_locked_topic
Macro
Requires: node
> 
            <then>
                <div style="text-align:right"><n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.last_node
Binary
Namespace: NodeNamespace
Parameters: do
.reply_link
Macro
Requires: node
Parameters: href, title
/></div>
            </then>
        </n.if.not.page_node.is_locked_topic>  
 
        <n.classic_pagination
Macro
Parameters: margin, row_count
 margin="1em .2em 0" row_count="[n.classic_row_count
Macro
Requires: blog_topic_namespace
/]" />
    </div>
</override_macro>
Overrides default macro
... in topic.naml
772
773
774
775
776
777
778
<macro name="view_contents" dot_parameter="rows" requires="classic_view_namespace">
    <div id="classic-contents">
        <n.classic_pagination margin="0 .2em .5em" row_count="[n.classic_row_count/]" />
        <n.rows/>
        <n.classic_pagination margin="1em .2em 0" row_count="[n.classic_row_count/]" />
    </div>
</macro>