topics_column.naml

<override_macro name="topics_column" parameters="width,title,count">
    <n.table_column>
        <head>
            <td class="[n.column_default_border/] topics-column nowrap" style="[n.width_style.width/]">
                <table class="avatar-table">
                    <tr>
                        <n.comment.>
                        <td style="width:22px;border:none">
                            <n.avatar_control group="A"/>
                        </td>
                        </n.comment.>   
                        <td class="nowrap" style="font-weight:bold;border:none">
                            <n.default. 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.>
                <td class="[n.column_default_border/]">
                    <table>
                        <tr>
                            <n.comment.> 
                            <td valign="top" style="border:none">
                                <n.owner.avatar size="small" group="A"/>
                            </td>
                            </n.comment.> 
                            <td style="width:100%;padding-left:.3em;border:none">
                                <n.if.is_app>
                                    <then>
                                        <b><n.node_link/></b>
                                        <span class="weak-color">
                                            (<n.remove_spaces_between_tags.>
                                                <n.one_or_many.topic_count>
                                                    <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/>
                                        <span class="weak-color">
                                            <t>by <t.author.owner.name truncate="20"/></t>
                                        </span>
                                    </else>
                                </n.if.is_app>
                            </td>
                        </tr>
                    </table>
                </td>
            </n.current_node.>
        </body>
    </n.table_column>
</override_macro>