aboutsummaryrefslogtreecommitdiff
path: root/t/post.t
diff options
context:
space:
mode:
Diffstat (limited to 't/post.t')
-rw-r--r--t/post.t12
1 files changed, 9 insertions, 3 deletions
diff --git a/t/post.t b/t/post.t
index 56d3c37..83529d7 100644
--- a/t/post.t
+++ b/t/post.t
@@ -1,7 +1,13 @@
<h1>Post <% printf("%d", id); %>: <%= post->subject %></h1>
-<p>From: <%= user->full %>
-&lt;<a href="?user=<% printf("%d", user->id); %>"><%= user->name %></a>&gt;
-<br>Date: <% PFREE(date(post->created)); %>
+<p>From: <%= user->full? user->full: "" %> <%
+if(user->full) printf("&lt;");
+%><a href="?user=<% printf("%d", user->id); %>"><%= user->name %></a><%
+if(user->full) printf("&gt;"); %>
+<br>Date: <% printdate(post->created); %>
+<% if(post->edited){
+ printf("<br>Edited: ");
+ printdate(post->edited);
+} %>
<pre>
<%= post->text %>
</pre> \ No newline at end of file