aboutsummaryrefslogtreecommitdiff
path: root/t/post.tc
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-17 23:47:58 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-17 23:47:58 +0200
commit7d65ce8c8e304dc8367f4492948514f2acc07a3b (patch)
tree1d1e8584ad326cf3ea7701e2a726a0f0ae1cb6cf /t/post.tc
parent56509ab16c8d2225182eb0400e5c6a4900870391 (diff)
downloadcforum-7d65ce8c8e304dc8367f4492948514f2acc07a3b.tar.gz
Whatever
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"