mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-09-24 18:29:05 +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
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue