diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-17 23:47:58 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-17 23:47:58 +0200 |
commit | 7d65ce8c8e304dc8367f4492948514f2acc07a3b (patch) | |
tree | 1d1e8584ad326cf3ea7701e2a726a0f0ae1cb6cf /t/post.tc | |
parent | 56509ab16c8d2225182eb0400e5c6a4900870391 (diff) | |
download | cforum-7d65ce8c8e304dc8367f4492948514f2acc07a3b.tar.gz |
Whatever
Diffstat (limited to 't/post.tc')
-rw-r--r-- | t/post.tc | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -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("<"); - +printf("\n"); +if(user->full) printf("<"); 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" |