openvk/Web/Presenters/templates/Wall/Post.xml

37 lines
1.1 KiB
XML
Raw Normal View History

2020-06-07 19:04:43 +03:00
{extends "../@layout.xml"}
2022-08-09 09:37:08 +03:00
{block title}{_post}{/block}
2020-06-07 19:04:43 +03:00
{block header}
<a href="{$wallOwner->getURL()}">
{$wallOwner->getCanonicalName()}
</a>
»
<a href="/wall{$wallOwner->getId() * ($isWallOfGroup ? -1 : 1)}">
{_wall}
</a>
»
2022-08-09 09:37:08 +03:00
{_post}
2020-06-07 19:04:43 +03:00
{/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",
2023-08-11 11:24:26 +03:00
parent => $post,
fromPost => true }
2020-06-07 19:04:43 +03:00
</div>
<div style="float: left; min-height: 100px; width: 32%;">
2020-08-20 17:05:00 +03:00
<h4>{_actions}</h4>
{if isset($thisUser)}
2022-04-24 08:06:45 +03:00
{var $canDelete = $post->canBeDeletedBy($thisUser)}
{/if}
2020-08-20 17:05:00 +03:00
<a n:if="$canDelete ?? false" class="profile_link" style="display:block;width:96%;" href="/wall{$post->getPrettyId()}/delete">{_delete}</a>
2020-06-07 19:04:43 +03:00
</div>
{/block}