board_table

NAML documentation   Watch a video
   Usages of this macro
... in view_board.naml
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<macro name="board_table" dot_parameter="columns">
    <div style="clear:both"></div>
    <table class="main medium-border-color">
        <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="20">
                    <n.loop
Macro
Requires: sequence
Parameters: by, do
.>
                        <n.table_header
Macro
Parameters: do
.>
                            <tr class="category-row shaded-bg-color">
                                <n.columns/>
                            </tr>
                        </n.table_header.>
                        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.current_node
Binary
Namespace: NodeList
Parameters: do
.has_children
Binary
Namespace: NodeNamespace
>
                            <then>
                                <n.current_node
Binary
Namespace: NodeList
Parameters: do
.children_list
Macro
Requires: node
Parameters: filter, start, length, sort, do
. length="20">
                                    <n.loop
Macro
Requires: sequence
Parameters: by, do
.>
                                        <tr class="main-row">
                                            <n.columns/>
                                        </tr>
                                    </n.loop.>
                                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.there_is_more
Binary
Namespace: NodeList
>
                                        <then>
                                            <tr>
                                                <td></td>
                                                <td colspan="4"><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.current_node.children_list.>
                            </then>
                            <else>
                                <tr>
                                    <td style="width:35px"></td>
                                    <td style="padding:.7em .5em">
                                        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.current_node
Binary
Namespace: NodeList
Parameters: do
.is_app
Binary
Namespace: NodeNamespace
>
                                            <then><t>No sub-forums</t></then>
                                            <else><t>No replies</t></else>
                                        </n.if.current_node.is_app>
                                    </td>
                                    <td colspan="3"></td>
                                </tr>
                            </else>
                        </n.if.current_node.has_children>
                    </n.loop.>
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.there_is_more
Binary
Namespace: NodeList
>
                        <then>
                            <tr>
                                <td colspan="5" style="padding:.5em"><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]More categories[/t]"/> &raquo;</td>
                            </tr>
                        </then>
                    </n.if.there_is_more>
                </n.page_node.children_list.>
            </then>
            <else>
                <tr>
                    <td colspan="4"><t>No sub-forums</t></td>
                </tr>
            </else>
        </n.if.page_node.has_children>
    </table>
    <div style="clear:both"></div>
</macro>