2020-06-07 19:04:43 +03:00
|
|
|
|
{extends "../@layout.xml"}
|
|
|
|
|
{block title}{_my_messages}{/block}
|
|
|
|
|
|
2021-12-14 16:12:33 +03:00
|
|
|
|
{block header}{_my_messages}{/block}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
|
|
|
|
|
{block content}
|
|
|
|
|
<div class="tabs">
|
|
|
|
|
<div id="activetabs" class="tab">
|
|
|
|
|
<a id="act_tab_a" href="javascript:false">Все сообщения</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="container_gray">
|
2022-01-09 08:49:23 +03:00
|
|
|
|
<form action="/im/search" method="POST" style="margin: 0;">
|
2020-06-07 19:04:43 +03:00
|
|
|
|
<input type="text" name="pattern" placeholder="Поиск сообщений" required />
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{if sizeof($corresps) > 0}
|
|
|
|
|
<div class="crp-list">
|
|
|
|
|
<div n:foreach="$corresps as $coresp"
|
|
|
|
|
class="crp-entry"
|
|
|
|
|
onmousedown="window.location.href = {$coresp->getURL()};" >
|
|
|
|
|
{var recipient = $coresp->getCorrespondents()[1]}
|
|
|
|
|
{var lastMsg = $coresp->getPreviewMessage()}
|
|
|
|
|
|
|
|
|
|
<div class="crp-entry--image">
|
2022-04-05 14:39:13 +03:00
|
|
|
|
<img src="{$recipient->getAvatarURL('miniscule')}"
|
2020-06-07 19:04:43 +03:00
|
|
|
|
alt="Фотография пользователя" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="crp-entry--info">
|
|
|
|
|
<a href="{$recipient->getURL()}">{$recipient->getCanonicalName()}</a><br/>
|
|
|
|
|
<span>{$lastMsg->getSendTime()->format("%e %B %G" . tr("time_at_sp") . "%X")}</span>
|
|
|
|
|
</div>
|
2021-01-27 20:59:11 +03:00
|
|
|
|
<div n:class="crp-entry--message, $lastMsg->getUnreadState() ? unread">
|
2020-06-07 19:04:43 +03:00
|
|
|
|
{var _author = $lastMsg->getSender()}
|
|
|
|
|
|
2021-01-27 20:59:11 +03:00
|
|
|
|
<div class="crp-entry--message---av" n:if="$_author->getId() === $thisUser->getId()">
|
2022-04-05 14:39:13 +03:00
|
|
|
|
<img src="{$_author->getAvatarURL('miniscule')}"
|
2020-06-07 19:04:43 +03:00
|
|
|
|
alt="Фотография пользователя" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="crp-entry--message---text">
|
2020-06-09 13:00:46 +03:00
|
|
|
|
{$lastMsg->getText()|noescape}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{else}
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
|
<center>Вам никто не писал. Пока что.</center>
|
|
|
|
|
{/if}
|
|
|
|
|
{/block}
|