summaryrefslogtreecommitdiff
path: root/backend/ikistrap/templates/comment.tmpl
blob: 59f24633b35f968534290c01c70f78ccf9bdf868 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<article class="comment card" id="<TMPL_VAR COMMENTID>">
	<TMPL_IF COMMENTAUTHORAVATAR>
	<div class="comment-avatar">
		<img src="<TMPL_VAR COMMENTAUTHORAVATAR>" alt="" />
	</div>
	</TMPL_IF>

	<div class="commentheader card-header">
		<header class="comment-subject" title="<TMPL_VAR TITLE>">
			<TMPL_IF PERMALINK>
			<a href="<TMPL_VAR PERMALINK>"><TMPL_VAR TITLE></a>
			<TMPL_ELSE>
			<TMPL_VAR TITLE>
			</TMPL_IF>
		</header>
	</div>

	<div class="commentcontent card-block card-text">
		<TMPL_VAR CONTENT>
	</div>

	<footer class="commentfooter card-footer text-muted">
		Posted <TMPL_VAR CTIME>
		<TMPL_IF COMMENTUSER>
			by
			<TMPL_IF COMMENTOPENID>
				<span class="author" title="OpenID">
					<a href="<TMPL_VAR COMMENTOPENID>"><TMPL_VAR COMMENTAUTHOR></a>
				</span>
				<TMPL_ELSE>
				<span class="author" title="Signed in">
					<TMPL_IF COMMENTAUTHORURL>
					<a href="<TMPL_VAR COMMENTAUTHORURL>"><TMPL_VAR COMMENTAUTHOR></a>
					<TMPL_ELSE>
					<TMPL_VAR COMMENTAUTHOR>
					</TMPL_IF>
				</span>
			</TMPL_IF>
		<TMPL_ELSE>
			<TMPL_IF AUTHOR>
			by
			<TMPL_IF COMMENTIP>
			<span class="author" title="Unauthenticated, from <TMPL_VAR COMMENTIP>">
			<TMPL_ELSE>
			<span class="author" title="Unauthenticated, from unknown IP address">
			</TMPL_IF>
				<TMPL_IF AUTHORURL>
				<a href="<TMPL_VAR AUTHORURL>"><TMPL_VAR AUTHOR></a>
				<TMPL_ELSE>
				<TMPL_VAR AUTHOR>
				</TMPL_IF>
			</span>
			</TMPL_IF>
		</TMPL_IF>

		<TMPL_IF HAVE_ACTIONS>
		<nav class="actions">
			<ul>
				<TMPL_IF REMOVEURL>
				<li><a href="<TMPL_VAR REMOVEURL>" rel="nofollow"><i class="fa fa-trash"></i>Remove comment</a></li>
				</TMPL_IF>
			</ul>
		</nav>
		</TMPL_IF>
	</footer>
</article>