{* * Sub-template included in comments/Comments.html and topics/Topics.html *}
{if $comment.vote > 0}+{/if}{$comment.vote} {if !($comment.status == hubCommentModel::STATUS_DELETED)} {/if}
{capture name=commentor_name} {if $comment.author}{$comment.author.name|escape}{else}{/if} {/capture} {if $comment.contact_id != 0} {$smarty.capture.commentor_name} {else} {$smarty.capture.commentor_name} {/if} {if !empty($comment.topic)} [`on topic`] {$comment.topic.title|escape} {/if} {$comment.datetime|wa_datetime:"humandatetime"}, {$comment.ip} {if !empty($comment.editable) && !empty($topic)} [`edit`] {/if} {if !empty($comment.can_delete)} [`delete`] [`restore`] {/if} {if $comment.status != hubCommentModel::STATUS_DELETED && (!empty($topic) && !empty($topic.type) && $topic.type.type == hubTopicModel::TYPE_QUESTION) && !$comment.depth}{strip} {if !$comment.solution}[`Mark as solution`]{else}[`Unmark solution`]{/if} {/strip}{/if}
{if $comment.status !== hubCommentModel::STATUS_DELETED}
{$comment.text}
{/if}
{if !empty($comment.parent)} {$_parent_comment_preview = strip_tags($comment.parent.text)|truncate:27:'...'}
[`in reply to`] {if !empty($_parent_comment_preview)} {$_parent_comment_preview} {else} [`comment`] {/if}
{/if} {if $comment.status != hubCommentModel::STATUS_DELETED && (empty($comment.topic.type.settings) || !empty($comment.topic.type.settings.commenting) && $comment.topic.type.type != 'forum')} [`reply`] {/if}