Add mod notes to ban cases, improve case display

This commit is contained in:
jvyden 2022-07-27 17:53:20 -04:00
commit 7ba50e26f5
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
6 changed files with 30 additions and 18 deletions

View file

@ -17,14 +17,14 @@
{
<div class="ui inverted red segment">
<h2>User is currently banned!</h2>
@if (Model.User != null && Model.User.IsAdmin)
@if (Model.User != null && Model.User.IsModerator)
{
<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">
<a class="ui inverted button" href="/moderation/user/@Model.ProfileUser.UserId/unban">
<i class="ban icon"></i>
<span>Unban User</span>
</a>
@ -94,7 +94,7 @@
<div class="eight wide column">
<div class="ui red segment">
<h2>Recent Activity</h2>
<p>Coming soon!</p>
<p>Coming soon?</p>
</div>
</div>
</div>
@ -118,10 +118,10 @@
@await Html.PartialAsync("Partials/CommentsPartial")
@if (Model.User != null && Model.User.IsAdmin)
@if (Model.User != null && Model.User.IsModerator)
{
<div class="ui yellow segment">
<h2>Admin Options</h2>
<div class="ui green segment">
<h2>Moderator Options</h2>
@if (!Model.ProfileUser.IsBanned)
{
@ -135,7 +135,7 @@
}
<div>
<a class="ui red button" href="/admin/user/@Model.ProfileUser.UserId/wipePlanets">
<a class="ui red button" href="/moderation/user/@Model.ProfileUser.UserId/wipePlanets">
<i class="trash alternate icon"></i>
<span>Wipe user's earth decorations</span>
</a>