mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-08 21:08:39 +00:00
Fix mod reason/notes overflow issue & show expiration time if applicable (#765)
* Fix mod reason/notes overflow issue & show expiration time if applicable * Remove extra whitespace * Wrap using line break instead of overflow scroll bar * Remove un-required overflow inline style
This commit is contained in:
parent
67b29f2689
commit
9646dea44a
1 changed files with 10 additions and 2 deletions
|
@ -49,6 +49,10 @@
|
||||||
<span>
|
<span>
|
||||||
Case created by <a href="/user/@Model.Creator.UserId">@Model.Creator.Username</a>
|
Case created by <a href="/user/@Model.Creator.UserId">@Model.Creator.Username</a>
|
||||||
on @TimeZoneInfo.ConvertTime(Model.CreatedAt, timeZoneInfo).ToString("M/d/yyyy @ h:mm tt")
|
on @TimeZoneInfo.ConvertTime(Model.CreatedAt, timeZoneInfo).ToString("M/d/yyyy @ h:mm tt")
|
||||||
|
@if (Model.ExpiresAt != null)
|
||||||
|
{
|
||||||
|
<span>until @TimeZoneInfo.ConvertTime(Model.ExpiresAt!.Value, timeZoneInfo).ToString("M/d/yyyy @ h:mm tt")</span>
|
||||||
|
}
|
||||||
</span><br>
|
</span><br>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -56,6 +60,10 @@
|
||||||
<span>
|
<span>
|
||||||
Case created by @Model.CreatorUsername
|
Case created by @Model.CreatorUsername
|
||||||
on @TimeZoneInfo.ConvertTime(Model.CreatedAt, timeZoneInfo).ToString("M/d/yyyy @ h:mm tt")
|
on @TimeZoneInfo.ConvertTime(Model.CreatedAt, timeZoneInfo).ToString("M/d/yyyy @ h:mm tt")
|
||||||
|
@if (Model.ExpiresAt != null)
|
||||||
|
{
|
||||||
|
<span>until @TimeZoneInfo.ConvertTime(Model.ExpiresAt!.Value, timeZoneInfo).ToString("M/d/yyyy @ h:mm tt")</span>
|
||||||
|
}
|
||||||
</span><br>
|
</span><br>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +88,7 @@
|
||||||
<h3>Reason</h3>
|
<h3>Reason</h3>
|
||||||
@if (!string.IsNullOrWhiteSpace(Model.Reason))
|
@if (!string.IsNullOrWhiteSpace(Model.Reason))
|
||||||
{
|
{
|
||||||
<pre>@Model.Reason</pre>
|
<pre style="white-space: initial;">@Model.Reason</pre>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -90,7 +98,7 @@
|
||||||
<h3>Moderator Notes</h3>
|
<h3>Moderator Notes</h3>
|
||||||
@if (!string.IsNullOrWhiteSpace(Model.ModeratorNotes))
|
@if (!string.IsNullOrWhiteSpace(Model.ModeratorNotes))
|
||||||
{
|
{
|
||||||
<pre>@Model.ModeratorNotes</pre>
|
<pre style="white-space: initial;">@Model.ModeratorNotes</pre>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue