aboutsummaryrefslogtreecommitdiff
path: root/t/post.t
blob: b4d1e52b804b3f082b6763f0efce04e09d16b9ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<% #include "head.tc" %>
<h1>Post <% printf("%d", id); %>: <%= post->subject %></h1>
<p>From: <%= user->full? user->full: "" %>
<% if(user->full) printf("&lt;"); %><a href="?user=<% printf("%d", user->id); %>"><%= user->name %></a><% if(user->full) printf("&gt;"); %>
<br>Date: <% printdate(post->created); %>
<% if(post->edited){
	printf("<br>Edited: ");
	printdate(post->edited);
} %>
<% if(post->parent){ %>
<br>In Reply To: <a href="?post=<% printf("%d", post->parent); %>"><% printf("%d", post->parent); %></a>
<% } %>
<pre>
<%= post->text %>
</pre>
<% #include "foot.tc" %>