mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
356c782f74
This commit adds discussions (forums) to groups, similar to how it was implemented in the original VK
25 lines
894 B
XML
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}
|