category_table

NAML documentation   Watch a video
   Usages of this macro
... in view_category.naml
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<macro name="category_table" dot_parameter="columns">
    <div style="clear:both"></div>
    <table class="main medium-border-color">
        <n.table_header
Macro
Parameters: do
.>
            <tr class="header-row shaded-bg-color">
                <n.columns/>
            </tr>
        </n.table_header.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.has_children
Binary
Namespace: NodeNamespace
>
            <then>
                <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.children_list
Macro
Requires: node
Parameters: filter, start, length, sort, do
. length="80">
                        <n.preload_messages
Binary
Namespace: NodeList
/>
                        <n.loop
Macro
Requires: sequence
Parameters: by, do
.>
                            <n.current_node
Binary
Namespace: NodeList
Parameters: do
.>
                                <tr class="main-row [n.category_row_classes
Macro
Requires: node
/]" node="[n.id
Binary
Namespace: NodeNamespace
/]">
                                    <n.columns/>
                                </tr>
                            </n.current_node.>
                        </n.loop.>
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.there_is_more
Binary
Namespace: NodeList
>
                        <then>
                            <tr>
                                <td></td>
                                <td><n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.node_link
Macro
Requires: node
Parameters: text, href, title, class
 href="[n.url
Macro
Requires: node
Parameters: template, date, index_record
 template='view_standard'/]" text="[t]View more[/t]"/> &raquo;</td>
                            </tr>
                        </then>
                    </n.if.there_is_more>
                </n.page_node.children_list.>
            </then>
            <else>
                <tr>
                    <td><t>Empty</t></td>
                </tr>
            </else>
        </n.if.page_node.has_children>
    </table>
    <div style="clear:both"></div>
 
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.has_private_subapps
Binary
Namespace: NodeNamespace
>
        <then.category_privacy_js
Macro
/>
    </n.if.page_node.has_private_subapps>
</macro>