diff src/nabble/modules/naml/thread_navigation.naml @ 0:7ecd1a4ef557

add content
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 21 Mar 2019 19:15:52 -0600
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/nabble/modules/naml/thread_navigation.naml	Thu Mar 21 19:15:52 2019 -0600
@@ -0,0 +1,29 @@
+<static>sub</static>
+
+<override_macro name="topic_header">
+	<n.overridden/>
+	<n.show_topic_navigation_links/>
+</override_macro>
+
+<macro name="show_topic_navigation_links">
+	<div style="margin:-1em 0 2em">
+		<n.if.page_node.topic_node.has_prev_topic>
+			<then>
+				<span style="float:left;white-space:nowrap">
+					<sub class="weak-color" style="font-size:180%">&lsaquo;</sub>
+					<a href="[n.page_node.topic_node.prev_topic.url/]"><t>Previous Topic</t></a>
+				</span>
+			</then>
+		</n.if.page_node.topic_node.has_prev_topic>
+
+		<n.if.page_node.topic_node.has_next_topic>
+			<then>
+				<span style="float:right;white-space:nowrap">
+					<a href="[n.page_node.topic_node.next_topic.url/]"><t>Next Topic</t></a>
+					<sub class="weak-color" style="font-size:180%">&rsaquo;</sub>
+				</span>
+			</then>
+		</n.if.page_node.topic_node.has_next_topic>
+		<div style="clear:both;height:0">&nbsp;</div>
+	</div>
+</macro>
\ No newline at end of file