aboutsummaryrefslogtreecommitdiff
path: root/t/post.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/post.t
parentc1e3206968f9878f8b7883cc7c313cd930c86d04 (diff)
downloadcforum-f8ef7e4a7c538bf392237c6c29caa9dedca6e29e.tar.gz
Add README for mktpl
Diffstat (limited to 't/post.t')
-rw-r--r--t/post.t16
1 files changed, 4 insertions, 12 deletions
diff --git a/t/post.t b/t/post.t
index deeb285..549b4ec 100644
--- a/t/post.t
+++ b/t/post.t
@@ -13,24 +13,16 @@
<pre>
<%= post->text %>
</pre>
-<%
-if(attachment = getattachment(stmt, 0)){
-%>
+<% if(attachment = getattachment(stmt, 0)){ %>
<h3>Attachments</h3>
<table border="1">
- <%
- do{
- %>
+ <% do{ %>
<tr>
<td><a href="?attachment=<% printf("%d", attachment->id); %>"><%= attachment->name %></a></td>
<td><%= attachment->mime %></td>
<td><%= attachment->description %></td>
</tr>
- <%
- }while(attachment = getattachment(stmt, 0));
- %>
+ <% }while(attachment = getattachment(stmt, 0)); %>
</table>
-<%
-}
-%>
+<% } %>
<% #include "foot.tc" %> \ No newline at end of file