mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 17:34:26 +03:00
35 lines
1.2 KiB
Smarty
35 lines
1.2 KiB
Smarty
{**
|
|
* Диалог
|
|
*
|
|
* @param object $talk
|
|
* @param array $comments
|
|
* @param array $lastCommentId
|
|
*}
|
|
|
|
{$talk = $smarty.local.talk}
|
|
|
|
{* Первое сообщение *}
|
|
{include './talk-message-root.tpl' talk=$talk}
|
|
|
|
{if ! $bNoComments}
|
|
{* Участники личного сообщения *}
|
|
{include './participants/participants.tpl'
|
|
users = $talk->getTalkUsers()
|
|
classes = 'message-users js-message-users'
|
|
attributes = [ 'data-param-i-target-id' => $talk->getId() ]
|
|
editable = $talk->getUserId() == $oUserCurrent->getId() || $oUserCurrent->isAdministrator()
|
|
title = $aLang.talk.users.title
|
|
excludeRemove = [ $oUserCurrent->getId() ]}
|
|
|
|
{* Вывод комментариев к сообщению *}
|
|
{include 'components/comment/comments.tpl'
|
|
comments = $smarty.local.comments
|
|
classes = 'js-comments-talk'
|
|
attributes = [ 'id' => 'comments' ]
|
|
targetId = $talk->getId()
|
|
targetType = 'talk'
|
|
count = $talk->getCountComment()
|
|
dateReadLast = $talk->getTalkUser()->getDateLast()
|
|
lastCommentId = $smarty.local.lastCommentId
|
|
forbidText = $aLang.talk.notices.deleted}
|
|
{/if} |