Make banned warning on UserPage look prettier

This commit is contained in:
jvyden 2022-01-19 08:51:50 -05:00
parent b62117669d
commit 1ba31fb8ed
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -17,12 +17,14 @@
@if (Model.ProfileUser.Banned)
{
<div class="ui inverted red segment">
<p>
<b>User is currently banned!</b>
</p>
<h2>User is currently banned!</h2>
@if (Model.User != null && Model.User.IsAdmin)
{
<p>Reason: @Model.ProfileUser.BannedReason</p>
<b>Reason:</b>
<span>"@Model.ProfileUser.BannedReason"</span>
<p>
<i>Note: Only you and other admins may view the ban reason.</i>
</p>
<a class="ui inverted button" href="/admin/user/@Model.ProfileUser.UserId/unban">
<i class="ban icon"></i>
<span>Unban User</span>