classic_row

NAML documentation   Watch a video
   Usages of this macro
... in classic_row.naml
1
2
3
4
5
6
7
8
9
10
11
12
<override_macro name="classic_row" requires="node_list">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.has_small_avatar
Macro
>
        <then.current_node
Binary
Namespace: NodeList
Parameters: do
.classic_row_with_small_avatar
Macro
Requires: node, node_list
/>
        <else.current_node
Binary
Namespace: NodeList
Parameters: do
.classic_row_with_big_avatar
Macro
Requires: node, node_list
/>
    </n.if.has_small_avatar>
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_first_element
Binary
Namespace: ListSequence
>
        <then.show_ad
Macro
Requires: servlet
/>
    </n.if.is_first_element>
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_last_element
Binary
Namespace: ListSequence
>
        <then.current_node
Binary
Namespace: NodeList
Parameters: do
.mark_as_visited
Macro
Requires: node
/>
    </n.if.is_last_element>
</override_macro>
Overrides default macro
... in topic.naml
342
343
344
345
346
347
348
349
350
<macro name="classic_row" requires="node_list">
    <n.if.has_small_avatar>
        <then.current_node.classic_row_with_small_avatar/>
        <else.current_node.classic_row_with_big_avatar/>
    </n.if.has_small_avatar>
    <n.if.is_last_element>
        <then.current_node.mark_as_visited/>
    </n.if.is_last_element>
</macro>