subapps.naml

<macro name="view_subapps">
	<n.app_min_html>
		<head>
			<n.subapps_title/>
		</head>
		<body>
			<h2><t>Subcategories under <t.location.page_node.subject/></t></h2>

			<n.subapps_table.>
				<n.subcategories_column/>
				<n.topic_count_column width="5em"/>
				<n.post_count_column width="5em"/>
				<n.last_post_column/>
			</n.subapps_table.>
		</body>
	</n.app_min_html>
</macro>

<macro name="subapps_title">
	<title><n.compress.>
		<n.page_node.>
			<n.if.not.is_root>
				<then><n.root_node.subject/> -</then>
			</n.if.not.is_root>
			<n.subject/>
		</n.page_node.>
		 - <t>List of Subcategories</t>
	</n.compress.></title>
</macro>

<macro name="subapps_table" dot_parameter="columns">
	<n.put_in_head.>
		<style type="text/css">
			table.main {
				margin-top:.2em;
				border-collapse:collapse;
				width:100%;
			}
			table.main tr.header-row td {
				padding: .3em .4em;
				font-weight: bold;
			}
			table.main tr.main-row td {
				padding:.3em .5em;
				border-bottom-width: 1px;
				border-bottom-style: dotted;
			}
			table.main tr.main-row,
			table.avatar-table tr {
				vertical-align:top;
			}
			div.sub-forums {
				margin-top:.8em;
				font-size:90%;
				clear:both;
			}
		</style>
	</n.put_in_head.>
	<div style="clear:both"></div>
	<table class="main">
		<n.table_header.>
			<tr class="header-row shaded-bg-color">
				<n.columns/>
			</tr>
		</n.table_header.>
		<n.if.page_node.has_subapps>
			<then>
				<n.page_node.subapps_list.>
					<n.preload_messages/>
					<n.loop.>
						<n.current_node.>
							<tr class="main-row [n.category_row_classes/]" node="[n.id/]">
								<n.columns/>
							</tr>
						</n.current_node.>
					</n.loop.>
					<n.if.there_is_more>
						<then>
							<tr>
								<td></td>
								<td colspan="4"><n.page_node.node_link href="[n.url template='view_standard'/]" text="[t]View more[/t]"/> &raquo;</td>
							</tr>
						</then>
					</n.if.there_is_more>
				</n.page_node.subapps_list.>
			</then>
			<else>
				<tr>
					<td colspan="4"><t>Empty</t></td>
				</tr>
			</else>
		</n.if.page_node.has_subapps>
	</table>
	<div style="clear:both"></div>

	<n.if.page_node.has_private_subapps>
		<then.category_privacy_js/>
	</n.if.page_node.has_private_subapps>
</macro>