1
0
Fork 0
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:
Denis Shakhov 2015-10-31 22:46:17 +07:00
parent e095be74b2
commit 708a1301a2

View file

@ -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