subcategories_column.naml

<override_macro name="subcategories_column" parameters="title,width">
    <n.table_column>
        <head>
            <td class="[n.column_default_border/] subcategories-column nowrap" style="[n.width_style.width/]" colspan="2">
                <n.default. to="[t]Forums[/t]"><n.title/></n.default.>
            </td>
        </head>
        <body>
            <td class="[n.column_default_border/]" style="width:1em">
                <n.if.current_node.is_app>
                    <then><img src="http://i307.photobucket.com/albums/nn308/ab_vortex/forum/nonewpost.png"/></then>
                    <else><img src="/images/thread.png" width="25" height="23"/></else>
                </n.if.current_node.is_app>
            </td>
            <td class="weak-color [n.column_default_border/]" style="width:60%">
                <div style="font-weight:bold;margin-bottom:.3em">
                    <n.current_node.node_link/>
                </div>
                <span class="weak-color node-snippet" style="font-size:90%;display:block;padding-bottom:.5em">
                    <n.if.current_node.is_app>
                        <then.current_node.node_message_as_html/>
                        <else>
                            <n.truncate. size="300">
                                <n.remove_html_tags.current_node.message.as_text/>
                            </n.truncate.>
                        </else>
                    </n.if.current_node.is_app>
                    <n.if.current_node.has_subapps>
                        <then>
                            <div class="sub-forums weak-color">
                                <b><t>Sub-Forums</t>:</b>
                                <n.current_node.subapps_list.loop.>
                                    <n.current_node.node_link class="nowrap" />&#32;
                                </n.current_node.subapps_list.loop.>
                            </div>
                        </then>
                    </n.if.current_node.has_subapps>
                </span>
            </td>
        </body>
    </n.table_column>
</override_macro>