count_column

NAML documentation   Watch a video
   Usages of this macro
... in user_nodes.naml
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<macro name="count_column" parameters="title,width">
    <n.table_column
Macro
Parameters: head, body
>
        <head>
            <td class="header" style="[n.width_style
Macro
Parameters: width
.width/]">
                <n.default
Binary
Namespace: BasicNamespace
Parameters: to, text
. to="[t]Count[/t]"><n.title/></n.default.>
            </td>
        </head>
        <body>
            <td class="weak-color nowrap">
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.current_node
Binary
Namespace: NodeList
Parameters: do
.is_app
Binary
Namespace: NodeNamespace
>
                    <then>
                        <n.one_or_many
Macro
Parameters: many_text, one_text, n
.current_node
Binary
Namespace: NodeList
Parameters: do
.topic_count
Binary
Namespace: NodeNamespace
Parameters: filter
>
                            <one_text><t>topic</t></one_text>
                            <many_text><t>topics</t></many_text>
                        </n.one_or_many.current_node.topic_count>
                    </then>
                    <else>
                        <n.one_or_many
Macro
Parameters: many_text, one_text, n
.current_node
Binary
Namespace: NodeList
Parameters: do
.replies
Binary
Namespace: NodeNamespace
>
                            <one_text><t>reply</t></one_text>
                            <many_text><t>replies</t></many_text>
                        </n.one_or_many.current_node.replies>
                    </else>
                </n.if.current_node.is_app>
            </td>
        </body>
    </n.table_column>
</macro>