openvk/Web/Presenters/templates/Messenger/Index.xml

56 lines
2.1 KiB
XML
Raw Normal View History

2020-06-07 19:04:43 +03:00
{extends "../@layout.xml"}
{block title}{_my_messages}{/block}
{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}
2023-08-11 11:24:26 +03:00
<div class="crp-list infContainer">
2020-06-07 19:04:43 +03:00
<div n:foreach="$corresps as $coresp"
2023-08-11 11:24:26 +03:00
class="crp-entry infObj"
2020-06-07 19:04:43 +03:00
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">
<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/>
<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()">
<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>
<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}