mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-27 12:46:15 +00:00
Add mod notes to ban cases, improve case display
This commit is contained in:
parent
cdcc03fdc1
commit
7ba50e26f5
6 changed files with 30 additions and 18 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue