2020-08-20 11:38:11 -04:00
|
|
|
@using SharedLibraryCore.Dtos.Meta.Responses
|
|
|
|
@model IEnumerable<MessageResponse>
|
2020-05-22 21:29:41 -04:00
|
|
|
|
|
|
|
@foreach (var message in Model)
|
|
|
|
{
|
|
|
|
<!-- desktop -->
|
|
|
|
<tr class="d-none d-lg-table-row">
|
|
|
|
<td>
|
|
|
|
<a asp-controller="Client" asp-action="ProfileAsync" asp-route-id="@message.ClientId" class="link-inverse">
|
2022-01-22 13:49:12 -05:00
|
|
|
<color-code value="@message.ClientName"></color-code>
|
2020-05-22 21:29:41 -04:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="text-light w-50 text-break">
|
2020-08-20 11:38:11 -04:00
|
|
|
@if (message.IsHidden && !ViewBag.Authorized)
|
|
|
|
{
|
2022-01-22 13:49:12 -05:00
|
|
|
<color-code value="@SharedLibraryCore.Utilities.FormatExt(ViewBag.Localization["WEBFRONT_CLIENT_META_CHAT_HIDDEN"], message.HiddenMessage)"></color-code>
|
2020-08-20 11:38:11 -04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2022-01-22 13:49:12 -05:00
|
|
|
<color-code value="@message.Message"></color-code>
|
2020-08-20 11:38:11 -04:00
|
|
|
}
|
2020-05-22 21:29:41 -04:00
|
|
|
</td>
|
|
|
|
<td class="text-light">
|
2022-01-22 13:49:12 -05:00
|
|
|
<color-code value="@(message.ServerName ?? "--")"></color-code>
|
2020-05-22 21:29:41 -04:00
|
|
|
</td>
|
|
|
|
<td class="text-right text-light">
|
2020-08-20 11:38:11 -04:00
|
|
|
@message.When
|
2020-05-22 21:29:41 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<!-- mobile -->
|
|
|
|
<tr class="d-table-row d-lg-none bg-dark">
|
|
|
|
<th scope="row" class="bg-primary">@ViewBag.Localization["WEBFRONT_PENALTY_TEMPLATE_ADMIN"]</th>
|
|
|
|
<td class="text-light">
|
|
|
|
<a asp-controller="Client" asp-action="ProfileAsync" asp-route-id="@message.ClientId" class="link-inverse">
|
2022-01-22 13:49:12 -05:00
|
|
|
<color-code value="@message.ClientName"></color-code>
|
2020-05-22 21:29:41 -04:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="d-table-row d-lg-none bg-dark">
|
|
|
|
<th scope="row" class="bg-primary">@ViewBag.Localization["WEBFRONT_ACTION_LABEL_MESSAGE"]</th>
|
|
|
|
<td class="text-light">
|
2020-08-20 11:38:11 -04:00
|
|
|
@if (message.IsHidden && !ViewBag.Authorized)
|
|
|
|
{
|
2022-01-22 13:49:12 -05:00
|
|
|
<color-code value="@SharedLibraryCore.Utilities.FormatExt(ViewBag.Localization["WEBFRONT_CLIENT_META_CHAT_HIDDEN"], message.HiddenMessage)"></color-code>
|
2020-08-20 11:38:11 -04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2022-01-22 13:49:12 -05:00
|
|
|
<color-code value="@message.Message"></color-code>
|
2020-08-20 11:38:11 -04:00
|
|
|
}
|
2020-05-22 21:29:41 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="d-table-row d-lg-none bg-dark">
|
|
|
|
<th scope="row" class="bg-primary">@ViewBag.Localization["WEBFRONT_STATS_MESSAGE_SERVER_NAME"]</th>
|
|
|
|
<td class="text-light">
|
2022-01-22 13:49:12 -05:00
|
|
|
<color-code value="@(message.ServerName ?? "--")"></color-code>
|
2020-05-22 21:29:41 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="d-table-row d-lg-none bg-dark">
|
|
|
|
<th scope="row" class="bg-primary" style="border-bottom: 1px solid #222">@ViewBag.Localization["WEBFRONT_ADMIN_AUDIT_LOG_TIME"]</th>
|
|
|
|
<td class="text-light mb-2 border-bottom">
|
2020-08-20 11:38:11 -04:00
|
|
|
@message.When
|
2020-05-22 21:29:41 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
2022-01-22 13:49:12 -05:00
|
|
|
}
|