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">
|
2022-06-01 18:08:27 +03:00
|
|
|
<a id="act_tab_a" href="javascript:false">{_all_messages}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-06 21:30:59 +03:00
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
<div class="container_gray">
|
2022-01-09 08:49:23 +03:00
|
|
|
<form action="/im/search" method="POST" style="margin: 0;">
|
2022-06-01 18:08:27 +03:00
|
|
|
<input type="text" name="pattern" placeholder="{_search_messages}" required />
|
2020-06-07 19:04:43 +03:00
|
|
|
</form>
|
|
|
|
</div>
|
2024-01-06 21:30:59 +03:00
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
{if sizeof($corresps) > 0}
|
|
|
|
<div class="crp-list">
|
|
|
|
<div n:foreach="$corresps as $coresp"
|
|
|
|
class="crp-entry"
|
|
|
|
onmousedown="window.location.href = {$coresp->getURL()};" >
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $recipient = $coresp->getCorrespondents()[1]}
|
|
|
|
{var $lastMsg = $coresp->getPreviewMessage()}
|
2024-01-06 21:30:59 +03:00
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
<div class="crp-entry--image">
|
2022-04-05 14:39:13 +03:00
|
|
|
<img src="{$recipient->getAvatarURL('miniscule')}"
|
2024-01-06 21:30:59 +03:00
|
|
|
alt="Фотография пользователя" loading=lazy />
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
<div class="crp-entry--info">
|
|
|
|
<a href="{$recipient->getURL()}">{$recipient->getCanonicalName()}</a><br/>
|
2022-05-31 17:39:52 +03:00
|
|
|
<span>{$lastMsg->getSendTimeHumanized()}</span>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
2021-01-27 20:59:11 +03:00
|
|
|
<div n:class="crp-entry--message, $lastMsg->getUnreadState() ? unread">
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $_author = $lastMsg->getSender()}
|
2024-01-06 21:30:59 +03:00
|
|
|
|
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>
|
2022-05-31 17:39:52 +03:00
|
|
|
<div style="margin-top: 3px;">
|
|
|
|
{include "../components/paginator.xml", conf => $paginatorConf}
|
|
|
|
</div>
|
2020-06-07 19:04:43 +03:00
|
|
|
{else}
|
|
|
|
<br/>
|
|
|
|
<br/>
|
2022-06-01 18:08:27 +03:00
|
|
|
<center>{_no_messages}</center>
|
2020-06-07 19:04:43 +03:00
|
|
|
{/if}
|
2024-01-06 21:30:59 +03:00
|
|
|
{/block}
|