Website QOL Changes (#646)

so Mike stops complaining about the neglected mod menu - sudokoko

Co-authored-by: Dagg <daggintosh@outlook.com>
This commit is contained in:
koko 2023-01-26 18:29:54 -05:00 committed by GitHub
commit 141d955f52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 37 additions and 8 deletions

View file

@ -23,18 +23,21 @@
@if (Model.ProfileUser.IsBanned)
{
<div class="ui inverted red segment">
<h2>User is currently banned!</h2>
@if (Model.User != null && Model.User.IsModerator)
{
<h3 style="margin-bottom:3px;"><i class="ban icon"></i> There is an active moderation case on this account.</h3>
<b>Reason:</b>
<span>"@Model.ProfileUser.BannedReason"</span>
<span>"@Model.ProfileUser.BannedReason"</span><br>
<b>Case ID:</b>
<span>@Model.Case?.CaseId</span>
<p>
<i>Note: Only you and other moderators may view the ban reason.</i>
<i>Only you and other moderators may view the ban reason.</i>
</p>
}
else
{
<p>For shame...</p>
<h3 style="margin-bottom:3px;"><i class="ban icon"></i> This user is currently banned.</h3>
<p>Users who violate our Community Guidelines will be moderated. Be sure to follow the rules!</p>
}
</div>
}
@ -268,8 +271,18 @@
</div>
<div class="ui fitted hidden divider"></div>
}
@if (Model.ProfileUser.IsBanned && Model.Case != null)
{
<div>
<a class="ui red button" href="moderation/case/@Model.Case.CaseId/dismiss">
<i class="unlock icon"></i>
<span>Unban User</span>
</a>
</div>
}
@if (Model.ProfileUser.CommentsEnabled)
@if (Model.ProfileUser.CommentsEnabled && !Model.ProfileUser.IsBanned)
{
<div>
<a class="ui yellow button" href="/moderation/newCase?type=@((int)CaseType.UserDisableComments)&affectedId=@Model.ProfileUser.UserId">
@ -283,7 +296,7 @@
<div>
<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>
<span>Wipe User Earth Decorations</span>
</a>
</div>
<div class="ui fitted hidden divider"></div>