Skip to content

Node.js based forum software built for the modern web

Merge branch 'master' of https://github.com/psychobunny/node-forum

psychobunny1f97fefac0ff
diff --cc public/templates/topic.tpl
index ed5de86aa8,777c72fb89..b5e32b08c4
--- a/public/templates/topic.tpl
+++ b/public/templates/topic.tpl
@@@ -2,15 -2,7 +2,15 @@@
<!-- BEGIN posts -->
<li class="topic-row">
<p>{posts.content}</p>
- <p>Posted on {posts.timestamp} by user {posts.uid}.</p>
+ <p>Posted {posts.relativeTime} by user {posts.uid}.</p>
</li>
<!-- END posts -->
-</ul>
+</ul>
+<hr />
+<button id="post_reply" class="btn btn-primary btn-large">Reply</button>
+<script type="text/javascript">
+var post_reply = document.getElementById('post_reply');
+post_reply.onclick = function() {
+ app.open_post_window('reply', {TOPIC_ID});
+}
- </script>
++</script>