aboutsummaryrefslogtreecommitdiff
path: root/t/front.t
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-18 01:52:04 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-18 01:52:04 +0200
commit24bf14f6653ebf1c1ba79b9f212d35417bb6acbf (patch)
tree913a0f1bebf835a1109652b1c61d363972ee9a28 /t/front.t
parente25f56cbe86041d4ab19e474e38032fa7e681ac7 (diff)
downloadcforum-24bf14f6653ebf1c1ba79b9f212d35417bb6acbf.tar.gz
Implement attachments
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>
<%
}