diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-18 01:52:04 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-18 01:52:04 +0200 |
commit | 24bf14f6653ebf1c1ba79b9f212d35417bb6acbf (patch) | |
tree | 913a0f1bebf835a1109652b1c61d363972ee9a28 /t/front.t | |
parent | e25f56cbe86041d4ab19e474e38032fa7e681ac7 (diff) | |
download | cforum-24bf14f6653ebf1c1ba79b9f212d35417bb6acbf.tar.gz |
Implement attachments
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> <% } |