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

57 lines
2.2 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>
<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>
{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()}
2020-06-07 19:04:43 +03:00
<div class="crp-entry--image">
<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->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()}
2020-06-07 19:04:43 +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}
{/block}