topics_summary_column

NAML documentation   Watch a video
   Usages of this macro
... in columns.naml
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
<macro name="topics_summary_column" parameters="width,title,count">
    <n.table_column
Macro
Parameters: head, body
>
        <head>
            <td class="[n.column_default_border
Macro
/] topics-summary-column nowrap" style="[n.width_style
Macro
Parameters: width
.width/]">
                <table class="avatar-table">
                    <tr>
                        <td class="nowrap" style="font-weight:bold;border:none">
                            <n.default
Binary
Namespace: BasicNamespace
Parameters: to, text
. to="[t
Macro
]Topics[/t]"><n.title/></n.default.>
                            <span class="weak-color" style="font-size:80%;margin-right:1.7em">(<n.count/>)</span>
                        </td>
                    </tr>
                </table>
            </td>
        </head>
        <body>
            <n.current_node
Binary
Namespace: NodeList
Parameters: do
.>
                <td class="[n.column_default_border
Macro
/] adbayes-content" style="padding:.4em 0">
                    <table>
                        <tr>
                            <td><n.owner
Binary
Namespace: NodeNamespace
Parameters: do
.avatar
Macro
Requires: user
Parameters: size, border_class, group
 size="small" group="A"/></td>
                            <td style="width:100%">
                                <n.smart_post_link
Macro
Requires: node
Parameters: text, href, title, class
/>
                                <t
Macro
Parameters: author
>by <t.author.owner
Binary
Namespace: NodeNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
 truncate="20"/></t>
                            </td>
                        </tr>
                    </table>
                    <div class="weak-color" style="width:100%;font-size:80%;margin-left:.4em">
                        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.has_replies
Binary
Namespace: NodeNamespace
>
                            <then.replies_link
Macro
Requires: node
/>
                            <else>
                                0 <t
Macro
>replies</t>
                            </else>
                        </n.if.has_replies>,
                        <n.views
Macro
Requires: node
Parameters: show_text
 show_text="true"/>
                        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_in_subapp
Macro
Requires: node, node_list
>
                            <then>
                                - <t
Macro
Parameters: location
>in <t.location.italic
Macro
Parameters: text
.subapp_link_on_hover
Macro
Requires: node, node_list
/></t>
                            </then>
                        </n.if.is_in_subapp>
                    </div>
                </td>
            </n.current_node.>
        </body>
    </n.table_column>
</macro>