view_topics.naml
<macro name="call_view_topics">
<n.view_topics />
</macro>
<subroutine name="view_topics" requires="basic,nabble,servlet">
<n.apply_app_namespace.view_topics_page />
</subroutine>
<macro name="view_topics_page">
<n.set_app_rows_per_page rows_per_page="[n.forum_topics_per_page/]"/>
<n.app_html>
<head>
<n.app_title/>
<n.topics_table_stylesheet/>
</head>
<body>
<n.new_topic_action_link/>
<n.subapps_action_link/>
<n.people_action_link/>
<n.options_action_menu/>
<n.app_topic_pagination margin=".8em .3em .5em 0"/>
<n.topics_table.topics_table_columns />
<n.app_topic_pagination margin=".8em .3em .5em 0"/>
<n.forum_footer/>
</body>
</n.app_html>
</macro>
<macro name="topics_table_columns" requires="app_namespace">
<n.pin_column/>
<n.topics_column count="[n.app_topic_count/]"/>
<n.replies_column/>
<n.last_post_column white_space="nowrap"/>
<n.views_column/>
<n.subapp_column/>
</macro>
<macro name="topics_table_columns" requires="narrow_app_namespace">
<n.pin_column/>
<n.topics_summary_column count="[n.app_topic_count/]" width="50%"/>
<n.last_post_column white_space="nowrap" width="50%"/>
</macro>
<macro name="topics_table_stylesheet">
<style type="text/css">
table.main {
width:99.9%;
border-width: 1px;
margin:0 1px;
border-style: solid;
border-collapse:collapse;
}
table.main td {
padding:.1em;
height:2.2em;
}
tr.header-row td {
font-weight:bold;
padding: .1em .2em;
border-bottom-width: 1px;
border-bottom-style: solid;
}
</style>
</macro>
<macro name="topics_table" dot_parameter="columns">
<div style="clear:both"></div>
<table class="main medium-border-color">
<n.table_header.>
<tr class="header-row shaded-bg-color">
<n.columns/>
</tr>
</n.table_header.>
<n.page_node.topics_list.
start="[n.app_index_record/]"
length="[n.app_rows_per_page/]"
sort="[n.topics_table_sort/]"
filter="[n.app_topic_filter/]"
>
<n.loop.>
<tr class="[n.even_row_background/] main-row">
<n.columns/>
</tr>
<n.if.next_node>
<then>
<tr class="[n.odd_row_background/] light-bg-color main-row">
<n.columns/>
</tr>
</then>
</n.if.next_node>
</n.loop.>
</n.page_node.topics_list.>
<n.if.not.page_node.has_topics filter="[n.app_topic_filter/]">
<then>
<tr>
<td></td>
<td colspan="10" style="padding:.8em 0">
<t>Empty</t>
</td>
</tr>
</then>
</n.if.not.page_node.has_topics>
</table>
<div style="clear:both"></div>
</macro>
<macro name="topics_table_sort">
pinned-and-last-node-date
</macro>