aboutsummaryrefslogtreecommitdiff
path: root/t/front.t
diff options
context:
space:
mode:
Diffstat (limited to 't/front.t')
-rw-r--r--t/front.t11
1 files changed, 4 insertions, 7 deletions
diff --git a/t/front.t b/t/front.t
index 86b8fb5..5f59c1c 100644
--- a/t/front.t
+++ b/t/front.t
@@ -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>
<%
}