openvk/Web/Presenters/templates/Notification/Feed.xml

64 lines
2.1 KiB
XML
Raw Normal View History

{extends "../@layout.xml"}
2022-04-24 08:06:45 +03:00
{var $sorting = false}
2020-06-07 19:04:43 +03:00
{block title}
{_feedback}
{/block}
{block header}
<a href="{$thisUser->getURL()}">{$thisUser->getCanonicalName()}</a> »
{_feedback}
{/block}
{block content}
<div n:ifcontent class="tabs">
2020-06-07 19:04:43 +03:00
<div n:attr="id => ($mode === 'new' ? 'activetabs' : 'ki')" class="tab">
<a n:attr="id => ($mode === 'new' ? 'act_tab_a' : 'ki')" href="?act=new">{_unread}</a>
2020-06-07 19:04:43 +03:00
</div>
<div n:attr="id => ($mode === 'archived' ? 'activetabs' : 'ki')" class="tab">
<a n:attr="id => ($mode === 'archived' ? 'act_tab_a' : 'ki')" href="?act=archived">{_archive}</a>
</div>
</div>
{var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
{if sizeof($data) > 0}
2023-11-18 21:22:12 +03:00
<div>
<table class="post post-divider" border="0" style="font-size: 11px;" n:foreach="$data as $dat">
<tbody>
<tr>
{var $sxModel = $dat->getModel(1)}
{if !(method_exists($sxModel, "getURL") && method_exists($sxModel, "getAvatarUrl"))}
{var $sxModel = $dat->getModel(0)}
{/if}
<td width="54" valign="top">
2022-12-13 19:57:02 +03:00
<a href="{$sxModel->getURL()}">
<img src="{$sxModel->getAvatarUrl('miniscule')}" width=50 />
</a>
</td>
<td width="100%" valign="top">
<div class="post-content">
<div class="text" style="line-height: 12pt;">
{include $dat->getTemplatePath(), notification => $dat}
</div>
</div>
</td>
</tr>
</tbody>
</table>
2023-11-18 21:22:12 +03:00
</div>
{include "../components/paginator.xml", conf => (object) [
"page" => $page,
"count" => $count,
"amount" => sizeof($data),
"perPage" => $perPage ?? OPENVK_DEFAULT_PER_PAGE,
"atBottom" => true,
]}
{else}
{ifset customErrorMessage}
{include customErrorMessage}
{else}
{include "../components/nothing.xml"}
{/ifset}
{/if}
{/block}