aboutsummaryrefslogtreecommitdiff
path: root/t/post.t
diff options
context:
space:
mode:
Diffstat (limited to 't/post.t')
-rw-r--r--t/post.t13
1 files changed, 8 insertions, 5 deletions
diff --git a/t/post.t b/t/post.t
index 83529d7..b4d1e52 100644
--- a/t/post.t
+++ b/t/post.t
@@ -1,13 +1,16 @@
+<% #include "head.tc" %>
<h1>Post <% printf("%d", id); %>: <%= post->subject %></h1>
-<p>From: <%= user->full? user->full: "" %> <%
-if(user->full) printf("&lt;");
-%><a href="?user=<% printf("%d", user->id); %>"><%= user->name %></a><%
-if(user->full) printf("&gt;"); %>
+<p>From: <%= user->full? user->full: "" %>
+<% if(user->full) printf("&lt;"); %><a href="?user=<% printf("%d", user->id); %>"><%= user->name %></a><% if(user->full) printf("&gt;"); %>
<br>Date: <% printdate(post->created); %>
<% if(post->edited){
printf("<br>Edited: ");
printdate(post->edited);
} %>
+<% if(post->parent){ %>
+<br>In Reply To: <a href="?post=<% printf("%d", post->parent); %>"><% printf("%d", post->parent); %></a>
+<% } %>
<pre>
<%= post->text %>
-</pre> \ No newline at end of file
+</pre>
+<% #include "foot.tc" %> \ No newline at end of file