last_post_column.naml

<override_macro name="last_post_column" parameters="title,width,white_space">
    <n.table_column>
        <head>
            <td class="[n.column_default_border/] nowrap last-post-column" style="[n.width_style.width/]">
                <n.default. to="[t]Last Post[/t]"><n.title/></n.default.>
            </td>
        </head>
        <body>
            <n.current_node.>
                <td class="[n.column_default_border/] weak-color">
                    <n.if.either condition1="[n.is_post/]" condition2="[n.has_topics/]">
                        <then>
                            <n.last_node.>
                                <table class="avatar-table">
                                    <tr>
                                        <n.last_post_column_start/>
                                        <td style="width:100%;padding:.0 .3em;border:none;[n.style. property='white-space'][n.white_space/][/n.style.]">
                                            <n.smart_post_link.url>
                                                <text.when_created.short_format/>
                                            </n.smart_post_link.url>
                                            <span class="weak-color nowrap" style="padding-left:.2em;">
                                                <t>by<br/><t.author.owner.name truncate="20"/></t>
                                            </span>
                                        </td>
                                    </tr>
                                </table>
                            </n.last_node.>
                        </then>
                        <else>
                            <span style="padding-left:.4em">
                                <t>Empty</t>
                            </span>
                        </else>
                    </n.if.either>
                </td>
            </n.current_node.>
        </body>
    </n.table_column>
</override_macro>