openvk/Web/Presenters/templates/Report/List.xml
2023-08-09 00:29:30 +03:00

49 lines
1.1 KiB
XML

{extends "../@listView.xml"}
{var iterator = iterator_to_array($reports)}
{var page = $paginatorConf->page}
{block tabs}{include "../NoSpam/Tabs.xml", mode => "reports"}{/block}
{block title}{_list_of_reports}{/block}
{block header}
{_list_of_reports}
{/block}
{block actions}
{/block}
{* BEGIN ELEMENTS DESCRIPTION *}
{block link|strip|stripHtml}
/admin/report{$x->getId()}
{/block}
{block preview}
<center><img src="/assets/packages/static/openvk/img/note_icon.png" style="margin-top: 17px;" /></center>
{/block}
{block name}
{$x->getAuthor()->getCanonicalName()}
{/block}
{block description}
{if $x->getContentType() == "post"}
{_text_of_the_post}: {$x->getContentObject()->getText()}
{elseif $x->getContentType() == "photo"}
{_photo}
{elseif $x->getContentType() == "video"}
{_video}
{elseif $x->getContentType() == "group"}
{_groups}
{elseif $x->getContentType() == "comment"}
{_comment}
{elseif $x->getContentType() == "app"}
{_app}
{elseif $x->getContentType() == "user"}
{_users}
{else}
Unknown
{/if}
{/block}