columns.naml
<macro name="table_header" dot_parameter="do">
<n.do/>
</macro>
<macro name="calc_table_column_count" dot_parameter="columns">
<n.global_set_var name="calc_table_column_count" value="0" />
<n.columns/>
<n.global_var name="calc_table_column_count" />
</macro>
<macro name="table_column" parameters="head,body">
<n.if.is_in_command name="calc_table_column_count">
<then.global_set_var. name="calc_table_column_count">
<n.int>
<i.global_var name="calc_table_column_count" />
<do.plus i="1" />
</n.int>
</then.global_set_var.>
<else.if.is_in_command name="table_header">
<then.head />
<else.body />
</else.if.is_in_command>
</n.if.is_in_command>
</macro>
<macro name="topic_count_column" parameters="title,width">
<n.table_column>
<head>
<td class="[n.column_default_border/] topic-count-column nowrap" align="center" style="[n.width_style.width/]">
<n.default. to="[t]Topics[/t]"><n.title/></n.default.>
</td>
</head>
<body>
<td class="weak-color [n.column_default_border/]" align="center"><n.current_node.topic_count/></td>
</body>
</n.table_column>
</macro>
<macro name="post_count_column" parameters="title,width">
<n.table_column>
<head>
<td class="[n.column_default_border/] post_count_column nowrap" align="center" style="[n.width_style.width/]">
<n.default. to="[t]Posts[/t]"><n.title/></n.default.>
</td>
</head>
<body>
<td class="weak-color [n.column_default_border/]" align="center"><n.current_node.post_count/></td>
</body>
</n.table_column>
</macro>
<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>
<text.when_created.short_format/>
</n.smart_post_link>
<span class="weak-color nowrap" style="padding-left:.2em">
<t>by <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>
</macro>
<macro name="last_post_column_start">
</macro>
<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]Subcategories[/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="/images/forum.png" width="25" height="23"/></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/] adbayes-content" 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" /> 
</n.current_node.subapps_list.loop.>
</div>
</then>
</n.if.current_node.has_subapps>
</span>
</td>
</body>
</n.table_column>
</macro>
<macro name="pin_column">
<n.table_column>
<head>
<td class="[n.column_default_border/] pin-column nowrap" style="width:24px"></td>
</head>
<body>
<n.current_node.>
<td class="[n.column_default_border/] pin-column" style="padding-left:.2em">
<n.if.is_app>
<then>
<n.if.is_pinned_in_loop>
<then><img src="/images/forum_pin.png" width="29" height="23" title="[t]Pinned sub-forum[/t]" alt="[t]Pinned sub-forum[/t]"/></then>
<else><img src="/images/forum.png" width="25" height="23" title="[t]Floating sub-forum[/t]" alt="[t]Floating sub-forum[/t]"/></else>
</n.if.is_pinned_in_loop>
</then>
<else>
<n.if.is_pinned_in_loop>
<then><img src="/images/pin.png" width="20" height="21" alt="pin"/></then>
</n.if.is_pinned_in_loop>
</else>
</n.if.is_app>
</td>
</n.current_node.>
</body>
</n.table_column>
</macro>
<macro name="replies_column" parameters="width,title">
<n.table_column>
<head>
<td class="[n.column_default_border/] replies-column nowrap" align="center" style="[n.width_style.width/]">
<n.default. to="[t]Replies[/t]"><n.title/></n.default.>
</td>
</head>
<body>
<td class="[n.column_default_border/]" align="center"><n.current_node.replies/></td>
</body>
</n.table_column>
</macro>
<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>
<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.topics_column_start/>
<td class="adbayes-content" style="width:100%;padding-left:.3em;border:none;word-break:break-word">
<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>
</macro>
<macro name="topics_column_start">
</macro>
<macro name="mixed_topics_column">
<n.topics_column>
<title>
<n.if.is_in_command name="top_topics">
<then><t>Topics</t></then>
<else><n.current_node.node_link class='second-font category-link'/></else>
</n.if.is_in_command>
</title>
<count>
<n.if.is_in_command name="top_topics">
<then><n.page_node.topic_count filter="[n.children_filter/]"/></then>
<else><n.current_node.child_count/></else>
</n.if.is_in_command>
</count>
</n.topics_column>
</macro>
<macro name="top_topics" dot_parameter="do">
<n.do/>
</macro>
<macro name="views_column" parameters="title">
<n.table_column>
<head>
<td class="[n.column_default_border/] views-column nowrap" align="center">
<n.default. to="[t]Views[/t]"><n.title/></n.default.>
</td>
</head>
<body>
<td class="weak-color [n.column_default_border/]" align="center"><n.current_node.views/></td>
</body>
</n.table_column>
</macro>
<macro name="subapp_column" parameters="width,title">
<n.table_column>
<head>
<n.if.page_node.has_subapps>
<then>
<td class="[n.column_default_border/] subapp-column nowrap" align="center" style="[n.width_style.width/]">
<n.default. to="[t]Sub Forum[/t]"><n.title/></n.default.>
</td>
</then>
</n.if.page_node.has_subapps>
</head>
<body>
<n.if.page_node.has_subapps>
<then>
<td class="[n.column_default_border/] adbayes-content" style="font-size:90%" align="center"><n.current_node.subapp_link/></td>
</then>
</n.if.page_node.has_subapps>
</body>
</n.table_column>
</macro>
<macro name="topics_summary_column" parameters="width,title,count">
<n.table_column>
<head>
<td class="[n.column_default_border/] topics-summary-column nowrap" style="[n.width_style.width/]">
<table class="avatar-table">
<tr>
<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/] adbayes-content" style="padding:.4em 0">
<table>
<tr>
<td><n.owner.avatar size="small" group="A"/></td>
<td style="width:100%">
<n.smart_post_link/>
<t>by <t.author.owner.name truncate="20"/></t>
</td>
</tr>
</table>
<div class="weak-color" style="width:100%;font-size:80%;margin-left:.4em">
<n.if.has_replies>
<then.replies_link/>
<else>
0 <t>replies</t>
</else>
</n.if.has_replies>,
<n.views show_text="true"/>
<n.if.is_in_subapp>
<then>
- <t>in <t.location.italic.subapp_link_on_hover/></t>
</then>
</n.if.is_in_subapp>
</div>
</td>
</n.current_node.>
</body>
</n.table_column>
</macro>
<!-- Table Defaults / To be overridden -->
<macro name="column_default_border">
medium-border-color
</macro>
<macro name="even_row_background">
</macro>
<macro name="odd_row_background">
light-bg-color
</macro>