mirror of
https://github.com/openvk/openvk
synced 2025-03-15 14:05:36 +03:00
43 lines
1.4 KiB
XML
43 lines
1.4 KiB
XML
{extends "../@layout.xml"}
|
|
{block title}{_post}{/block}
|
|
|
|
{block header}
|
|
<a href="{$wallOwner->getURL()}">
|
|
{$wallOwner->getCanonicalName()}
|
|
</a>
|
|
»
|
|
<a href="/wall{$wallOwner->getId() * ($isWallOfGroup ? -1 : 1)}">
|
|
{_wall}
|
|
</a>
|
|
»
|
|
{_post}
|
|
{/block}
|
|
|
|
{block content}
|
|
{include "../components/post.xml", post => $post, forceNoCommentsLink => TRUE, forceNoDeleteLink => TRUE}
|
|
<hr/>
|
|
<div style="float: left; min-height: 100px; width: 68%;">
|
|
{include "../components/comments.xml",
|
|
comments => $comments,
|
|
count => $cCount,
|
|
page => $cPage,
|
|
model => "posts",
|
|
parent => $post }
|
|
</div>
|
|
<div style="float: left; min-height: 100px; width: 32%;">
|
|
<h4>{_actions}</h4>
|
|
{if isset($thisUser)}
|
|
{var $canDelete = $post->canBeDeletedBy($thisUser)}
|
|
{/if}
|
|
|
|
<a n:if="$canDelete ?? false" class="profile_link" style="display:block;width:96%;" href="/wall{$post->getPrettyId()}/delete">{_delete}</a>
|
|
<a
|
|
n:if="$thisUser->getChandlerUser()->can('access')->model('admin')->whichBelongsTo(NULL) AND $post->getEditTime() AND OPENVK_ROOT_CONF['openvk']['preferences']['wall']['logChanges']"
|
|
style="display:block;width:96%;"
|
|
class="profile_link"
|
|
href="/wall{$post->getPrettyId()}/history"
|
|
>
|
|
История изменений
|
|
</a>
|
|
</div>
|
|
{/block}
|