<div id="comment{$comment->id}" class="comment_item status{$comment->status} clearfix" style="margin-left:{($comment->level-1)*20}px">
	<table class="table nomargin">
		<tr>
			<td class="user_data">
				{include file=$_cfg.core.auth_module|cat:"/user_item.tpl" user=$comment->user}
				{if access('comment_moderator, comment_admin')}<small class="muted">{$comment->ip}</small>{/if}
			</td>
			<td>
				{if $moderation}
					<label><input type="radio" name="act[{$comment->id}]" value="del" />удалить</label>
					<label><input type="radio" name="act[{$comment->id}]" value="ok" />оставить</label>
					<a href="{$comment->item->url|escape}">{$comment->item->title|escape}</a>
				{/if}
				<div class="post-info">
					{if $_cfg.module.lc_comments.rating_enable}
						<div class="btn-group voting pull-right"{if $comment_votes[$comment->id]==1} title="{t}Вы проголосовали положительно{/t}"{elseif $comment_votes[$comment->id]==-1}title="{t}Вы проголосовали отрицательно{/t}"{/if}>
							{if isset($comment_votes)}
								<a class="{if $comment_votes[$comment->id]}disabled {/if}btn btn-default btn-xs" title="{t}за{/t}" onclick="return voter.vote(this, {$comment->id}, 1, 'comment')" href="#plus"><img src="/skins/default/images/icons/plus_white16.png" alt="{t}за{/t}" /></a>
								<span class="score btn btn-xs disabled{if $comment->vote_result>0} btn-success{elseif $comment->vote_result<0} btn-danger{else} btn-default {/if}">{$comment->vote_result}</span>
								<a class="{if $comment_votes[$comment->id]}disabled {/if}btn btn-default btn-xs" title="{t}против{/t}" onclick="return voter.vote(this, {$comment->id}, -1, 'comment')" href="#minus"><img src="/skins/default/images/icons/minus_white16.png" alt="{t}против{/t}" /></a>
							{else}
								<span class="score btn btn-xs disabled{if $comment->vote_result>0} btn-success{elseif $comment->vote_result<0} btn-danger{else} btn-default {/if}">{$comment->vote_result}</span>
							{/if}
						</div>
					{/if}
					<div class="btn-group pull-right">
						{if $comment->access.add}<a class="btn btn-default btn-xs" title="{t}ответить{/t}" href="{url href=getModulePath('lc_comments') action="reply" var1=$comment->id}"><img src="/skins/default/images/icons/simple_add.png" alt="{t}ответить{/t}" /></a>{/if}
						{if $comment->access.edit}<a class="btn btn-default btn-xs" title="{t}редактировать{/t}" href="{url href=getModulePath('lc_comments') action="edit" var1=$comment->id}"><img src="/skins/default/images/icons/simple_edit.png" alt="{t}редактировать{/t}" /></a>{/if}
						{if $comment->access.undelete}<a class="btn btn-default btn-xs" title="{t}восстановить{/t}" href="{url href=getModulePath('lc_comments') action="undelete" var1=$comment->id token=1}"><img src="/skins/default/images/icons/simple_component.png" alt="{t}восстановить{/t}" /></a>{/if}
						{if $comment->access.unhide}<a class="btn btn-default btn-xs" title="{t}отобразить{/t}" href="{url href=getModulePath('lc_comments') action="unhide" var1=$comment->id token=1}"><img src="/skins/default/images/icons/simple_component.png" alt="{t}отобразить{/t}" /></a>{/if}
						{if $comment->access.delete}<a class="btn btn-default btn-xs" title="{t}удалить{/t}" onclick="return confirm('{t}Удалить комментарий?{/t}');" href="{url href=getModulePath('lc_comments') action="delete" var1=$comment->id token=1}"><img src="/skins/default/images/icons/simple_noaccess.png" alt="{t}удалить{/t}" /></a>{/if}
						{if $comment->access.delete_branch}<a class="btn btn-default btn-xs" onclick="return confirm('{t}Удалить этот и все последующие комментарии?{/t}');" title="{t}удалить ветвь{/t}" href="{url href=getModulePath('lc_comments') action="delete_branch" var1=$comment->id token=1}"><img src="/skins/default/images/icons/simple_delete.png" alt="{t}удалить ветвь{/t}" /></a>{/if}
						{if $comment->access.abuse}<a class="btn btn-default btn-xs" title="{t}это спам{/t}" href="{url href=getModulePath('lc_comments') action="abuse" var1=$comment->id token=1}"><img src="/skins/default/images/icons/simple_system.png" alt="{t}это спам{/t}" /></a>{/if}
						{if $comment->abuse_count && access('comment_moderator, comment_admin')} {t}Жалоб{/t}: {$comment->abuse_count}{/if}
					</div>
					<span class="smalltext">{$comment->putdate|date_format:"%Y-%m-%d %H:%M:%S"}</span>
				</div>
				<div class="comment_body">{$comment->text_html}</div>
			</td>
		</tr>
	</table>
</div>