aboutsummaryrefslogtreecommitdiff
path: root/t/front.t
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-18 02:25:16 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-18 02:25:16 +0200
commitf8ef7e4a7c538bf392237c6c29caa9dedca6e29e (patch)
tree5a69b89d1f8879381e5714b54d32206dd45877e9 /t/front.t
parentc1e3206968f9878f8b7883cc7c313cd930c86d04 (diff)
downloadcforum-f8ef7e4a7c538bf392237c6c29caa9dedca6e29e.tar.gz
Add README for mktpl
Diffstat (limited to 't/front.t')
-rw-r--r--t/front.t10
1 files changed, 3 insertions, 7 deletions
diff --git a/t/front.t b/t/front.t
index 5c88166..fcdecdb 100644
--- a/t/front.t
+++ b/t/front.t
@@ -2,17 +2,13 @@
<h1><%= site.name %></h1>
<h3>Latest posts</h3>
<table border="1">
- <%
- while(post = getpost(stmt, 0)){
- user = getuser(byid("users", post->user), 1);
- %>
+ <% while(post = getpost(stmt, 0)){
+ user = getuser(byid("users", post->user), 1); %>
<tr>
<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>
- <%
- }
- %>
+ <% } %>
</table>
<% #include "foot.tc" %> \ No newline at end of file