topics_column

NAML documentation   Watch a video
   Usages of this macro
... in columns.naml
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<macro name="topics_column" parameters="width,title,count">
    <n.table_column
Macro
Parameters: head, body
>
        <head>
            <td class="[n.column_default_border
Macro
/] topics-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]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
/]">
                    <table>
                        <tr>
                            <n.topics_column_start
Macro
/>
                            <td class="adbayes-content" style="width:100%;padding-left:.3em;border:none;word-break:break-word">
                                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_app
Binary
Namespace: NodeNamespace
>
                                    <then>
                                        <b><n.node_link
Macro
Requires: node
Parameters: text, href, title, class
/></b>
                                        <span class="weak-color">
                                            (<n.remove_spaces_between_tags
Macro
Parameters: text
.>
                                                <n.one_or_many
Macro
Parameters: many_text, one_text, n
.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.topic_count>
                                            </n.remove_spaces_between_tags.>)
                                        </span>
                                    </then>
                                    <else>
                                        <n.smart_post_link
Macro
Requires: node
Parameters: text, href, title, class
/>
                                        <span class="weak-color">
                                            <t>by <t.author.owner
Binary
Namespace: NodeNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
 truncate="20"/></t>
                                        </span>
                                    </else>
                                </n.if.is_app>
                            </td>
                        </tr>
                    </table>
                </td>
            </n.current_node.>
        </body>
    </n.table_column>
</macro>