diff options
Diffstat (limited to 't/front.t')
-rw-r--r-- | t/front.t | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -1,6 +1,6 @@ <% #include "head.tc" %> <h1><%= site.name %></h1> -<p>Thanks for the <%= getenv("REQUEST_METHOD") %> request!</p> +<h3>Latest posts</h3> <table border="1"> <% struct post *post; @@ -10,12 +10,9 @@ user = getuser(byid("users", post->user), 1); %> <tr> - <td><a href="?user=<% printf("%d", post->user); %>"><%= - user->name - %></a></td> - <td><a href="?post=<% printf("%d", post->id); %>"><%= - post->subject - %></a></td> + <td><a href="?post=<% printf("%d", post->id); %>"><%= post->subject %></a></td> + <td><a href="?user=<% printf("%d", post->user); %>"><%= user->name %></a></td> + <td><% printdate(post->created); %></td> </tr> <% } |