aboutsummaryrefslogtreecommitdiff
path: root/t/post.tc
diff options
context:
space:
mode:
Diffstat (limited to 't/post.tc')
-rw-r--r--t/post.tc19
1 files changed, 14 insertions, 5 deletions
diff --git a/t/post.tc b/t/post.tc
index 732f0a7..9207de5 100644
--- a/t/post.tc
+++ b/t/post.tc
@@ -1,12 +1,12 @@
-printf("<h1>Post ");
+#include "head.tc"
+printf("\n<h1>Post ");
printf("%d", id);
printf(": ");
printf("%s", post->subject );
printf("</h1>\n<p>From: ");
printf("%s", user->full? user->full: "" );
-printf(" ");
-if(user->full) printf("&lt;");
-
+printf("\n");
+if(user->full) printf("&lt;");
printf("<a href=\"?user=");
printf("%d", user->id);
printf("\">");
@@ -20,6 +20,15 @@ if(post->edited){
printf("<br>Edited: ");
printdate(post->edited);
}
+printf("\n");
+if(post->parent){
+printf("\n<br>In Reply To: <a href=\"?post=");
+printf("%d", post->parent);
+printf("\">");
+printf("%d", post->parent);
+printf("</a>\n");
+}
printf("\n<pre>\n");
printf("%s", post->text );
-printf("\n</pre>");
+printf("\n</pre>\n");
+#include "foot.tc"