diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-17 22:34:52 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-17 22:34:52 +0200 |
commit | 56509ab16c8d2225182eb0400e5c6a4900870391 (patch) | |
tree | e3c3bcc760ecc187a3f4ee8c6616855d15e86d83 /t/post.t | |
parent | 3e400c3df5572524b7ba08b030f45eb3ba6b7734 (diff) | |
download | cforum-56509ab16c8d2225182eb0400e5c6a4900870391.tar.gz |
Fix mktpl bug
Diffstat (limited to 't/post.t')
-rw-r--r-- | t/post.t | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,7 +1,13 @@ <h1>Post <% printf("%d", id); %>: <%= post->subject %></h1> -<p>From: <%= user->full %> -<<a href="?user=<% printf("%d", user->id); %>"><%= user->name %></a>> -<br>Date: <% PFREE(date(post->created)); %> +<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); +} %> <pre> <%= post->text %> </pre>
\ No newline at end of file |