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.t | |
parent | 56509ab16c8d2225182eb0400e5c6a4900870391 (diff) | |
download | cforum-7d65ce8c8e304dc8367f4492948514f2acc07a3b.tar.gz |
Whatever
Diffstat (limited to 't/post.t')
-rw-r--r-- | t/post.t | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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("<"); -%><a href="?user=<% printf("%d", user->id); %>"><%= user->name %></a><% -if(user->full) printf(">"); %> +<p>From: <%= user->full? user->full: "" %> +<% if(user->full) printf("<"); %><a href="?user=<% printf("%d", user->id); %>"><%= user->name %></a><% if(user->full) printf(">"); %> <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 |