mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-05 16:04:24 +03:00
76 lines
2.8 KiB
Smarty
76 lines
2.8 KiB
Smarty
{**
|
|
* Список сообщений
|
|
*}
|
|
|
|
<table class="table table-talk js-message-list">
|
|
<thead>
|
|
<tr>
|
|
{if $bMessageListCheckboxes}
|
|
<th class="cell-checkbox"><input type="checkbox" name="" class="input-checkbox" onclick="ls.tools.checkAll('form_talks_checkbox', this, true);"></th>
|
|
{/if}
|
|
<th class="cell-recipients">{$aLang.talk_inbox_target}</th>
|
|
<th class="cell-favourite"> </th>
|
|
<th class="cell-title">{$aLang.talk_inbox_title}</th>
|
|
<th class="cell-date ta-r">{$aLang.talk_inbox_date}</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{foreach $aTalks as $oTalk}
|
|
{$oTalkUserAuthor = $oTalk->getTalkUser()}
|
|
|
|
<tr>
|
|
{if $bMessageListCheckboxes}
|
|
<td class="cell-checkbox"><input type="checkbox" name="talk_select[{$oTalk->getId()}]" class="form_talks_checkbox input-checkbox" /></td>
|
|
{/if}
|
|
<td class="cell-recipients">
|
|
{strip}
|
|
{$aTalkUserOther = []}
|
|
|
|
{foreach $oTalk->getTalkUsers() as $oTalkUser}
|
|
{if $oTalkUser->getUserId() != $oUserCurrent->getId()}
|
|
{$aTalkUserOther[] = $oTalkUser}
|
|
{/if}
|
|
{/foreach}
|
|
|
|
{foreach $aTalkUserOther as $oTalkUser}
|
|
{$oUser = $oTalkUser->getUser()}
|
|
|
|
{if ! $oTalkUser@first}, {/if}<a href="{$oUser->getUserWebPath()}" class="username {if $oTalkUser->getUserActive()!=$TALK_USER_ACTIVE}inactive{/if}" {if $oTalkUser->getUserActive()!=$TALK_USER_ACTIVE}title="{$aLang.talk_speaker_not_found}"{/if}>{$oUser->getDisplayName()}</a>
|
|
{/foreach}
|
|
{/strip}
|
|
</td>
|
|
<td class="cell-favourite">
|
|
<div class="favourite js-favourite">
|
|
<div data-favourite-type="talk"
|
|
data-favourite-id="{$oTalk->getId()}"
|
|
class="favourite-toggle js-favourite-toggle {if $oTalk->getIsFavourite()}active{/if}"
|
|
title="{if $oTalk->getIsFavourite()}{$aLang.talk_favourite_del}{else}{$aLang.talk_favourite_add}{/if}"></a>
|
|
</div>
|
|
</td>
|
|
<td class="cell-title">
|
|
{strip}
|
|
<a href="{router page='talk'}read/{$oTalk->getId()}/" class="js-title-talk" title="{$oTalk->getTextLast()|strip_tags|truncate:100:'...'|escape:'html'}">
|
|
{if $oTalkUserAuthor->getCommentCountNew() or ! $oTalkUserAuthor->getDateLast()}
|
|
<strong>{$oTalk->getTitle()|escape:'html'}</strong>
|
|
{else}
|
|
{$oTalk->getTitle()|escape:'html'}
|
|
{/if}
|
|
</a>
|
|
{/strip}
|
|
|
|
{if $oTalk->getCountComment()}
|
|
<span>{$oTalk->getCountComment()}</span>{if $oTalkUserAuthor->getCommentCountNew()} <span class="new">+{$oTalkUserAuthor->getCommentCountNew()}</span>{/if}
|
|
{/if}
|
|
|
|
{if $oUserCurrent->getId()==$oTalk->getUserIdLast()}
|
|
<i class="icon-synio-arrow-right"></i>
|
|
{else}
|
|
<i class="icon-synio-arrow-left"></i>
|
|
{/if}
|
|
</td>
|
|
<td class="cell-date ta-r">{date_format date=$oTalk->getDate() format="j F Y"}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table> |