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">
|
2022-04-19 19:43:58 -04:00
|
|
|
<td colspan="20%" class="text-break">
|
|
|
|
<a asp-controller="Client" asp-action="Profile" 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>
|
2022-04-19 19:43:58 -04:00
|
|
|
<td colspan="45%" class="text-break">
|
2020-08-20 11:38:11 -04:00
|
|
|
@if (message.IsHidden && !ViewBag.Authorized)
|
|
|
|
{
|
2022-04-19 19:43:58 -04:00
|
|
|
<color-code value="@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>
|
2022-04-19 19:43:58 -04:00
|
|
|
<td colspan="20%" class="text-break">
|
2022-01-22 13:49:12 -05:00
|
|
|
<color-code value="@(message.ServerName ?? "--")"></color-code>
|
2020-05-22 21:29:41 -04:00
|
|
|
</td>
|
2022-04-19 19:43:58 -04:00
|
|
|
<td colspan="15%" class="text-right text-break">
|
2020-08-20 11:38:11 -04:00
|
|
|
@message.When
|
2020-05-22 21:29:41 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<!-- mobile -->
|
2022-04-19 19:43:58 -04:00
|
|
|
<tr class="d-flex d-lg-none">
|
|
|
|
<td class="bg-primary text-light">
|
|
|
|
<div>@ViewBag.Localization["WEBFRONT_PENALTY_TEMPLATE_ADMIN"]</div>
|
|
|
|
<div>@ViewBag.Localization["WEBFRONT_ACTION_LABEL_MESSAGE"]</div>
|
|
|
|
<div>@ViewBag.Localization["WEBFRONT_STATS_MESSAGE_SERVER_NAME"]</div>
|
|
|
|
<div>@ViewBag.Localization["WEBFRONT_ADMIN_AUDIT_LOG_TIME"]</div>
|
|
|
|
</td>
|
|
|
|
<td class="flex-fill">
|
|
|
|
<a asp-controller="Client" asp-action="Profile" asp-route-id="@message.ClientId">
|
2022-01-22 13:49:12 -05:00
|
|
|
<color-code value="@message.ClientName"></color-code>
|
2020-05-22 21:29:41 -04:00
|
|
|
</a>
|
2022-04-19 19:43:58 -04:00
|
|
|
<div>
|
|
|
|
@if (message.IsHidden && !ViewBag.Authorized)
|
|
|
|
{
|
|
|
|
<color-code value="@Utilities.FormatExt(ViewBag.Localization["WEBFRONT_CLIENT_META_CHAT_HIDDEN"], message.HiddenMessage)"></color-code>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<color-code value="@message.Message"></color-code>
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<color-code value="@(message.ServerName ?? "--")"></color-code>
|
|
|
|
</div>
|
|
|
|
<div> @message.When</div>
|
2020-05-22 21:29:41 -04:00
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-01-22 13:49:12 -05:00
|
|
|
}
|