openvk/Web/Presenters/templates/Topics/Topic.xml
Maxim Leshchenko 356c782f74
Groups: Discussions
This commit adds discussions (forums) to groups, similar to how it was implemented in the original VK
2021-12-15 00:27:17 +02:00

25 lines
894 B
XML

{extends "../@layout.xml"}
{block title}{_view_topic} "{$topic->getTitle()}"{/block}
{block header}
<a href="{$club->getURL()}">{$club->getCanonicalName()}</a>
»
<a href="/board{$club->getId()}">{_discussions}</a>
»
{_view_topic}
<div style="float: right;" n:if="$topic->canBeModifiedBy($thisUser)">
<a href="/topic{$club->getId()}_{$topic->getVirtualId()}/edit">{_edit_topic_action}</a>
</div>
{/block}
{block content}
<div class="container_gray">
<b>{$topic->getTitle()}</b>
<br />
<a href="{$topic->getOwner()->getURL()}">{$topic->getOwner()->getCanonicalName()}</a>
</div>
<div style="margin-top: 20px;">
{include "../components/comments.xml", comments => $comments, count => $count, page => $page, model => "topics", club => $club, readOnly => $topic->isClosed(), parent => $topic}
</div>
{/block}