move meat of type checking to match_page where it belongs
[ikiwiki] / templates / comment.tmpl
1 <TMPL_IF HTML5><article class="comment" id="<TMPL_VAR COMMENTID>">
2 <TMPL_ELSE><div class="comment" id="<TMPL_VAR COMMENTID>"></TMPL_IF>
3
4 <TMPL_IF HTML5><header class="comment-subject"><TMPL_ELSE><div class="comment-subject"></TMPL_IF>
5 <TMPL_IF PERMALINK>
6 <a href="<TMPL_VAR PERMALINK>"><TMPL_VAR TITLE></a>
7 <TMPL_ELSE>
8 <TMPL_VAR TITLE>
9 </TMPL_IF>
10 <TMPL_IF HTML5></header><TMPL_ELSE></div></TMPL_IF>
11
12 <TMPL_IF HTML5><section class="inlinecontent"><TMPL_ELSE><div class="inlinecontent"></TMPL_IF>
13 <TMPL_VAR CONTENT>
14 <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
15
16 <TMPL_IF HTML5><header class="comment-header"><TMPL_ELSE><div class="comment-header"></TMPL_IF>
17 Comment by
18 <TMPL_IF COMMENTUSER>
19 <TMPL_IF COMMENTOPENID>
20 <span class="author" title="OpenID">
21 <a href="<TMPL_VAR COMMENTOPENID>"><TMPL_VAR COMMENTAUTHOR></a>
22 </span>
23 <TMPL_ELSE>
24 <span class="author" title="Signed in">
25 <TMPL_IF COMMENTAUTHORURL>
26 <a href="<TMPL_VAR COMMENTAUTHORURL>"><TMPL_VAR COMMENTAUTHOR></a>
27 <TMPL_ELSE>
28 <TMPL_VAR COMMENTAUTHOR>
29 </TMPL_IF>
30 </span>
31 </TMPL_IF>
32 <TMPL_ELSE>
33 <TMPL_IF COMMENTIP>
34 <span class="author" title="Unauthenticated, from <TMPL_VAR COMMENTIP>">
35 <TMPL_ELSE>
36 <span class="author" title="Unauthenticated, from unknown IP address">
37 </TMPL_IF>
38 <TMPL_IF AUTHORURL>
39 <a href="<TMPL_VAR AUTHORURL>"><TMPL_VAR AUTHOR></a>
40 <TMPL_ELSE>
41 <TMPL_VAR AUTHOR>
42 </TMPL_IF>
43 </span>
44 </TMPL_IF>
45 &mdash; <TMPL_VAR CTIME>
46 <TMPL_IF HTML5></header><TMPL_ELSE></div></TMPL_IF>
47
48 <TMPL_IF HAVE_ACTIONS>
49 <TMPL_IF HTML5><nav class="actions"><TMPL_ELSE><div class="actions"></TMPL_IF>
50 <ul>
51 <TMPL_IF REMOVEURL>
52 <li><a href="<TMPL_VAR REMOVEURL>" rel="nofollow">Remove comment</a></li>
53 </TMPL_IF>
54 </ul>
55 <TMPL_IF HTML5></nav><TMPL_ELSE></div></TMPL_IF>
56 </TMPL_IF>
57
58 <TMPL_IF HTML5></article><TMPL_ELSE></div></TMPL_IF>