openvk/Web/Presenters/templates/@banned.xml

42 lines
1.3 KiB
XML
Raw Normal View History

2020-06-07 19:04:43 +03:00
{extends "@layout.xml"}
2022-08-09 09:37:08 +03:00
{block title}{_banned_title}{/block}
2020-06-07 19:04:43 +03:00
{block header}
2022-08-09 09:37:08 +03:00
{_banned_header}
2020-06-07 19:04:43 +03:00
{/block}
{block content}
<center>
2022-08-09 09:37:08 +03:00
<img src="/assets/packages/static/openvk/img/oof.apng" alt="{_banned_alt}" style="width: 20%;" />
2020-06-07 19:04:43 +03:00
</center>
<p>
{var $ban = $thisUser->getBanReason("banned")}
{if is_string($ban)}
{tr("banned_1", htmlentities($thisUser->getCanonicalName()))|noescape}<br/>
{tr("banned_2", htmlentities($thisUser->getBanReason()))|noescape}
{else}
{tr("banned_1", htmlentities($thisUser->getCanonicalName()))|noescape}
<div>
Эта страница была заморожена {$ban[0]|noescape}
{if $ban[1] !== "app"}
{include "Report/ViewContent.xml", type => $ban[1], object => $ban[2]}
{/if}
</div>
{/if}
{if !$thisUser->getUnbanTime()}
{_banned_perm}
{else}
{tr("banned_until_time", $thisUser->getUnbanTime())|noescape}
{/if}
</p>
<p n:if="$thisUser->canUnbanThemself()">
<hr/>
<center><a class="button" href="/unban.php">{_banned_unban_myself}</a></center>
2020-06-07 19:04:43 +03:00
</p>
<hr/>
<p>
{tr("banned_3", urlencode($csrfToken))|noescape}
2020-06-07 19:04:43 +03:00
</p>
{/block}