summaryrefslogtreecommitdiff
path: root/templates/display_comment.tpl
blob: 84b6652faef7b53bdd7dec74b224c8d0e975ec42 (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
{strip}
{if $comments_style eq 'threaded'}
	<div style="margin-left: {math equation="level * marginIncrement" level=$comment.level marginIncrement=20}px">
{else}
	<div style="margin-left: 0px">
{/if}
	<div class="post">
		<div class="floaticon">
			{if $gBitUser->hasPermission( 'p_liberty_post_comments' )}
				<a href="{$comments_return_url}&amp;post_comment_reply_id={$comment.content_id}&amp;post_comment_request=1#editcomments" rel="nofollow">{biticon ipackage="liberty" iname="reply" iexplain="Reply to this comment"}</a>
			{/if}
			{if $comment.editable}
				<a href="{$comments_return_url}&amp;post_comment_id={$comment.comment_id}&amp;post_comment_request=1#editcomments" rel="nofollow">{biticon ipackage="liberty" iname="edit" iexplain="Edit"}</a>
			{/if}
			{if $gBitUser->isAdmin()}
				<a href="{$comments_return_url}&amp;delete_comment_id={$comment.comment_id}" rel="nofollow">{biticon ipackage="liberty" iname="delete" iexplain="Remove"}</a>
			{/if}
		</div>

		<h3>{$comment.title|escape}</h3>
		<div class="date">{tr}by{/tr} {if $comment.user_id < 0}{$comment.anon_name|escape}{else}{displayname hash=$comment}{/if}, {$comment.last_modified|bit_long_datetime}</div>
 ID: { $comment.content_id}
 Root: { $comment.root_id} Parent: { $comment.parent_id}
 Thread Forward: {$comment.thread_forward_sequence}
 Thread Reverse: {$comment.thread_reverse_sequence} 
		<div class="content">
			{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$comment}
			{$comment.parsed_data}
		</div>
	</div><!-- end .post -->
</div><!-- end .left margin -->
{/strip}