openvk/Web/Presenters/templates/components/postChange.xml
2022-09-06 19:58:53 +03:00

33 lines
1.5 KiB
XML

{var $author = $change->getAuthor()}
<table border="0" style="font-size: 11px;">
<tbody>
<tr>
<td width="54" valign="top">
<a href="{$author->getURL()}">
<img src="{$author->getAvatarURL('miniscule')}" width="50" />
<span n:if="!$post->isPostedOnBehalfOfGroup() && !($compact ?? false) && $author->isOnline()" class="post-online">{_online}</span>
</a>
</td>
<td width="100%" valign="top">
<div class="post-author">
<a href="{$author->getURL()}"><b>
{$author->getCanonicalName()}
</b></a>
<img n:if="$author->isVerified()" class="name-checkmark" src="/assets/packages/static/openvk/img/checkmark.png"><br/>
</div>
<div class="post-content" id="{$change->getId()}">
<div class="text" id="text{$change->getId()}">
{$change->getNewContent()|noescape}
</div>
<span class="nobold">
&nbsp;&nbsp;{$change->getCreationDate()}
</span>
<a n:if="$change->canBeApplied()" href="/wall{$post->getPrettyId()}/history/restore{$change->getId()}">
&nbsp;|&nbsp; Применить
</a>
</div>
</td>
</tr>
</tbody>
</table>