aboutsummaryrefslogtreecommitdiff
path: root/t/post.tc
diff options
context:
space:
mode:
Diffstat (limited to 't/post.tc')
-rw-r--r--t/post.tc14
1 files changed, 13 insertions, 1 deletions
diff --git a/t/post.tc b/t/post.tc
index 7c36950..2f81de0 100644
--- a/t/post.tc
+++ b/t/post.tc
@@ -1,3 +1,15 @@
printf("<h1>Post ");
printf("%d", id);
-printf("</h1>\n");
+printf(": ");
+printf("%s", post->subject );
+printf("</h1>\n<p>From: ");
+printf("%s", user->full );
+printf("\n&lt;<a href=\"?user=");
+printf("%d", user->id);
+printf("\">");
+printf("%s", user->name );
+printf("</a>&gt;\n<br>Date: ");
+PFREE(date(post->created));
+printf("\n<pre>\n");
+printf("%s", post->text );
+printf("\n</pre>");