improve audit log display on mobile

This commit is contained in:
RaidMax 2022-07-23 11:09:23 -05:00
parent b27ae1517e
commit c817f9a810

View File

@ -30,7 +30,7 @@
</td> </td>
<td> <td>
@info.Data @info.Data
<td> <td class="text-force-break font-weight-light">
@info.NewValue @info.NewValue
</td> </td>
<td class="text-right"> <td class="text-right">
@ -40,32 +40,36 @@
<!-- mobile --> <!-- mobile -->
<tr class="d-table-row d-lg-none d-flex bg-dark-dm bg-light-lm"> <tr class="d-table-row d-lg-none d-flex bg-dark-dm bg-light-lm">
<td class="bg-primary text-light text-right flex-grow-0"> <td class="bg-primary text-light text-right flex-grow-0 w-quarter d-flex flex-column">
<div class="mt-5 mb-5">@loc["WEBFRONT_PENALTY_TEMPLATE_TYPE"]</div> <div class="mt-5 mb-5">@loc["WEBFRONT_PENALTY_TEMPLATE_TYPE"]</div>
<div class="mt-5 mb-5">@loc["WEBFRONT_PENALTY_TEMPLATE_ADMIN"]</div> <div class="mt-5 mb-5">@loc["WEBFRONT_PENALTY_TEMPLATE_ADMIN"]</div>
<div class="mt-5 mb-5">@loc["WEBFRONT_PENALTY_TEMPLATE_NAME"]</div> <div class="mt-5 mb-5">@loc["WEBFRONT_PENALTY_TEMPLATE_NAME"]</div>
<div class="mt-5 mb-5">@loc["WEBFRONT_ADMIN_AUDIT_LOG_INFO"]</div> <div class="mt-5 mb-5">@loc["WEBFRONT_ADMIN_AUDIT_LOG_INFO"]</div>
<div class="mt-5 mb-5">@loc["WEBFRONT_ADMIN_AUDIT_LOG_CURRENT"]</div> <div class="mt-5 mb-5">@loc["WEBFRONT_ADMIN_AUDIT_LOG_CURRENT"]</div>
<div class="mt-5 mb-5">@loc["WEBFRONT_ADMIN_AUDIT_LOG_TIME"]</div> <div class="mt-5 mb-5 mt-auto">@loc["WEBFRONT_ADMIN_AUDIT_LOG_TIME"]</div>
</td> </td>
<td> <td class="w-three-quarter d-flex flex-column">
<div class="mt-5 mb-5">@info.Action</div> <div class="mt-5 mb-5">@info.Action</div>
<a asp-controller="Client" asp-action="Profile" asp-route-id="@info.OriginId" class="link-inverse"> <div class="mt-5 mb-5">
<color-code value="@info.OriginName"></color-code> <a asp-controller="Client" asp-action="Profile" asp-route-id="@info.OriginId" class="link-inverse">
</a> <color-code value="@info.OriginName"></color-code>
</a>
</div>
@if (info.TargetId != null) @if (info.TargetId != null)
{ {
<a asp-controller="Client" asp-action="Profile" asp-route-id="@info.TargetId" class="mt-5 mb-5"> <div class="mt-5 mb-5">
<color-code value="@info.TargetName"></color-code> <a asp-controller="Client" asp-action="Profile" asp-route-id="@info.TargetId">
</a> <color-code value="@info.TargetName"></color-code>
</a>
</div>
} }
else else
{ {
<div class="mt-5 mb-5">&ndash;</div> <div class="mt-5 mb-5">&ndash;</div>
} }
<div class="mt-5 mb-5">@info.Data</div> <div class="mt-5 mb-5">@info.Data</div>
<div class="mt-5 mb-5">@info.NewValue</div> <div class="mt-5 mb-5 text-force-break">@info.NewValue</div>
<div class="mt-5 mb-5">@info.When</div> <div class="mt-5 mb-5 text-muted">@info.When.ToStandardFormat()</div>
</td> </td>
</tr> </tr>
} }