mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 17:34:26 +03:00
76 lines
2.6 KiB
Smarty
76 lines
2.6 KiB
Smarty
{**
|
|
* Список сообщений
|
|
*}
|
|
|
|
<table class="table table-talk">
|
|
<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-favourite"></th>
|
|
<th class="cell-recipients">{$aLang.talk_inbox_target}</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-favourite">
|
|
<div class="favourite js-favourite" data-favourite-type="talk" data-favourite-id="{$oTalk->getId()}">
|
|
<div 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>
|
|
{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="user {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>
|
|
<h2>
|
|
<a href="{router page='talk'}read/{$oTalk->getId()}/">
|
|
{if $oTalkUserAuthor->getCommentCountNew() or ! $oTalkUserAuthor->getDateLast()}
|
|
<strong>{$oTalk->getTitle()|escape:'html'}</strong>
|
|
{else}
|
|
{$oTalk->getTitle()|escape:'html'}
|
|
{/if}
|
|
</a>
|
|
|
|
{if $oTalk->getCountComment()}
|
|
({$oTalk->getCountComment()}{if $oTalkUserAuthor->getCommentCountNew()} +{$oTalkUserAuthor->getCommentCountNew()}{/if})
|
|
{/if}
|
|
|
|
{if $oUserCurrent->getId()==$oTalk->getUserIdLast()}
|
|
→
|
|
{else}
|
|
←
|
|
{/if}
|
|
</h2>
|
|
|
|
{$oTalk->getText()|strip_tags|truncate:120:"..."|escape}
|
|
</td>
|
|
<td class="cell-date ta-r">{date_format date=$oTalk->getDate() format="j F Y, H:i"}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table> |