Add ability for cases to perform actions

This commit is contained in:
jvyden 2022-08-05 20:32:35 -04:00
commit 4718970f6b
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
10 changed files with 169 additions and 41 deletions

View file

@ -49,14 +49,24 @@
<p><strong>Affected user:</strong> <a href="/user/@user.UserId">@user.Username</a></p>
}
@if (!string.IsNullOrWhiteSpace(Model.Description))
<h3>Reason</h3>
@if (!string.IsNullOrWhiteSpace(Model.Reason))
{
<h3>Description</h3>
<pre>@Model.Description</pre>
<pre>@Model.Reason</pre>
}
else
{
<b>No description was provided.</b>
<pre><b>No reason was provided.</b></pre>
}
<h3>Moderator Notes</h3>
@if (!string.IsNullOrWhiteSpace(Model.ModeratorNotes))
{
<pre>@Model.ModeratorNotes</pre>
}
else
{
<pre><b>No notes were provided.</b></pre>
}
@if (!Model.Dismissed)
@ -66,11 +76,4 @@
<span>Dismiss</span>
</a>
}
else
{
<a class="ui yellow small button" href="/moderation/case/@Model.CaseId/undoDismiss">
<i class="undo icon"></i>
<span>Undo dismission</span> @* TODO: fix english here lol wtf is this *@
</a>
}
</div>