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

@ -18,16 +18,12 @@
This case expired on @Model.CaseExpires!.Value.ToString("MM/dd/yyyy @ h:mm tt").
</h3>
}
<span>
Case created by <a href="/user/@Model.CaseCreator!.UserId">@Model.CaseCreator.Username</a>
on @Model.CaseCreated.ToString("MM/dd/yyyy @ h:mm tt")
</span><br>
<span>
<strong>Description:</strong> @Model.CaseDescription
</span><br>
@if (Model.CaseType.AffectsLevel())
{
Slot slot = await Model.GetSlotAsync(database);
@ -38,4 +34,14 @@
User user = await Model.GetUserAsync(database);
<p><strong>Affected user:</strong> <a href="/user/@user.UserId">@user.Username</a></p>
}
@if (!string.IsNullOrWhiteSpace(Model.CaseDescription))
{
<h3>Description</h3>
<pre>@Model.CaseDescription</pre>
}
else
{
<b>No description was provided.</b>
}
</div>