31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
|
|
@page
|
||
|
|
@model StatiKosev.Pages.InboxModel
|
||
|
|
@inject Microsoft.AspNetCore.Antiforgery.IAntiforgery Antiforgery
|
||
|
|
@{
|
||
|
|
ViewData["Title"] = StringValues["Messages"];
|
||
|
|
}
|
||
|
|
@section Head {
|
||
|
|
<link rel="stylesheet" href="~/styles/inbox.css" asp-append-version="true"/>
|
||
|
|
}
|
||
|
|
|
||
|
|
@* messages are loaded as JSON from PrivateMessageController by inbox.js *@
|
||
|
|
<section class="inbox"
|
||
|
|
data-api="/messages"
|
||
|
|
data-token="@Antiforgery.GetAndStoreTokens(HttpContext).RequestToken"
|
||
|
|
data-anonymous="@StringValues["Anonymous"]"
|
||
|
|
data-mark-read="@StringValues["MarkRead"]"
|
||
|
|
data-read="@StringValues["Read"]"
|
||
|
|
data-empty="@StringValues["NoMessages"]"
|
||
|
|
data-failed="@StringValues["LoadFailed"]">
|
||
|
|
<header class="inbox-header">
|
||
|
|
<h1>@StringValues["Messages"]</h1>
|
||
|
|
<label><input type="checkbox" class="inbox-unread-only"/> @StringValues["UnreadOnly"]</label>
|
||
|
|
</header>
|
||
|
|
<p class="inbox-status" role="status" aria-live="polite">@StringValues["Loading"]</p>
|
||
|
|
<ol class="inbox-list"></ol>
|
||
|
|
</section>
|
||
|
|
|
||
|
|
@section Scripts {
|
||
|
|
<script src="~/scripts/inbox.js" asp-append-version="true"></script>
|
||
|
|
}
|