2020-06-07 19:04:43 +03:00
|
|
|
{var author = $comment->getOwner()}
|
|
|
|
|
|
|
|
<a name="cid={$comment->getId()}"></a>
|
2021-10-12 18:12:11 +03:00
|
|
|
<table border="0" style="font-size: 11px;" class="post" id="_comment{$comment->getId()}" data-comment-id="{$comment->getId()}" data-owner-id="{$author->getId()}">
|
2020-06-07 19:04:43 +03:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td width="54" valign="top">
|
|
|
|
<img
|
|
|
|
src="{$author->getAvatarURL()}"
|
|
|
|
width="50" />
|
|
|
|
</td>
|
|
|
|
<td width="345" valign="top">
|
|
|
|
<div class="post-author">
|
|
|
|
<a href="{$author->getURL()}"><b>
|
|
|
|
{$author->getCanonicalName()}
|
|
|
|
</b></a> {$author->isFemale() ? tr("post_writes_f") : tr("post_writes_m")}<br/>
|
2021-10-12 18:12:11 +03:00
|
|
|
<a href="#_comment{$comment->getId()}" class="date">{$comment->getPublicationTime()}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
<div class="post-content" id="{$comment->getId()}">
|
|
|
|
<div class="text" id="text{$comment->getId()}">
|
|
|
|
{$comment->getText()|noescape}
|
2021-10-12 14:17:21 +03:00
|
|
|
|
|
|
|
<div n:ifcontent class="attachments_b">
|
|
|
|
<div class="attachment" n:foreach="$comment->getChildren() as $attachment" data-localized-nsfw-text="{_nsfw_warning}">
|
|
|
|
{include "attachment.xml", attachment => $attachment}
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
<div n:if="isset($thisUser) &&! ($compact ?? false)" class="post-menu">
|
|
|
|
{var canDelete = $comment->getOwner()->getId() == $thisUser->getId()}
|
|
|
|
{var canDelete = $canDelete || $comment->getTarget()->getOwner()->getId() == $thisUser->getId()}
|
|
|
|
{if $canDelete}
|
2021-10-12 14:18:07 +03:00
|
|
|
<a href="/comment{$comment->getId()}/delete">{_"delete"}</a> |
|
2020-06-07 19:04:43 +03:00
|
|
|
{/if}
|
|
|
|
|
2021-10-12 14:18:07 +03:00
|
|
|
<a class="comment-reply">Ответить</a>
|
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
<div style="float: right; font-size: .7rem;">
|
|
|
|
<a href="/comment{$comment->getId()}/like?hash={rawurlencode($csrfToken)}">
|
2021-01-17 01:29:21 +03:00
|
|
|
<div class="heart" style="{if $comment->hasLikeFrom($thisUser)}opacity: 1;{else}opacity: 0.4;{/if}"></div>
|
|
|
|
<span class="likeCnt">{$comment->getLikesCount()}</span>
|
2020-06-07 19:04:43 +03:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|