aboutsummaryrefslogtreecommitdiff
path: root/t/post.tc
blob: 732f0a7563008dda85a5ebeedc4951b263358b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
printf("<h1>Post ");
printf("%d", id); 
printf(": ");
printf("%s",  post->subject );
printf("</h1>\n<p>From: ");
printf("%s",  user->full? user->full: "" );
printf(" ");
if(user->full) printf("&lt;");

printf("<a href=\"?user=");
printf("%d", user->id); 
printf("\">");
printf("%s",  user->name );
printf("</a>");
if(user->full) printf("&gt;"); 
printf("\n<br>Date: ");
printdate(post->created); 
printf("\n");
if(post->edited){
	printf("<br>Edited: ");
	printdate(post->edited);
} 
printf("\n<pre>\n");
printf("%s",  post->text );
printf("\n</pre>");