mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-19 17:28:23 +03:00
Fixes #721 Исправлено отображение комментариев в личке
This commit is contained in:
parent
e095be74b2
commit
708a1301a2
|
@ -11,22 +11,22 @@
|
|||
{* Первое сообщение *}
|
||||
{component 'talk' template='message-root' talk=$talk}
|
||||
|
||||
{if $activeParticipantsCount && $comments}
|
||||
{* Участники личного сообщения *}
|
||||
{capture 'talk_message_root_participants'}
|
||||
{component 'talk' template='participants'
|
||||
users = $talk->getTalkUsers()
|
||||
classes = 'message-users js-message-users'
|
||||
attributes = [ 'data-param-target_id' => $talk->getId() ]
|
||||
editable = $talk->getUserId() == $oUserCurrent->getId() || $oUserCurrent->isAdministrator()
|
||||
excludeRemove = [ $oUserCurrent->getId() ]}
|
||||
{/capture}
|
||||
{* Участники личного сообщения *}
|
||||
{capture 'talk_message_root_participants'}
|
||||
{component 'talk' template='participants'
|
||||
users = $talk->getTalkUsers()
|
||||
classes = 'message-users js-message-users'
|
||||
attributes = [ 'data-param-target_id' => $talk->getId() ]
|
||||
editable = $talk->getUserId() == $oUserCurrent->getId() || $oUserCurrent->isAdministrator()
|
||||
excludeRemove = [ $oUserCurrent->getId() ]}
|
||||
{/capture}
|
||||
|
||||
{component 'details'
|
||||
classes = 'js-details-default ls-talk-participants-details'
|
||||
title = "{lang 'talk.users.title'} ({count($talk->getTalkUsers())})"
|
||||
content = $smarty.capture.talk_message_root_participants}
|
||||
{component 'details'
|
||||
classes = 'js-details-default ls-talk-participants-details'
|
||||
title = "{lang 'talk.users.title'} ({count($talk->getTalkUsers())})"
|
||||
content = $smarty.capture.talk_message_root_participants}
|
||||
|
||||
{if $activeParticipantsCount || $comments}
|
||||
{* Вывод комментариев к сообщению *}
|
||||
{component 'comment' template='comments'
|
||||
comments = $smarty.local.comments
|
||||
|
|
Loading…
Reference in a new issue