diff --git a/application/frontend/components/talk/talk.tpl b/application/frontend/components/talk/talk.tpl index b21b95ee..c41a32fa 100644 --- a/application/frontend/components/talk/talk.tpl +++ b/application/frontend/components/talk/talk.tpl @@ -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