aboutsummaryrefslogtreecommitdiff
path: root/t/user.t
diff options
context:
space:
mode:
Diffstat (limited to 't/user.t')
-rw-r--r--t/user.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/user.t b/t/user.t
index af7c8cd..b69633a 100644
--- a/t/user.t
+++ b/t/user.t
@@ -1,3 +1,13 @@
<% #include "head.tc" %>
<h1>User <% printf("%d", id); %>: <%= user->name %></h1>
+<h3>Latest posts</h3>
+<table border="1">
+ <% while(post = nextpost(stmt)){ %>
+ <tr>
+ <td><a href="?post=<% printf("%d", post->id); %>"><%= post->subject %></a></td>
+ <td><% printdate(post->created); %></td>
+ </tr>
+ <% free(post);
+ } %>
+</table>
<% #include "foot.tc" %> \ No newline at end of file