diff options
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 |