@page @model StatiKosev.Pages.InboxModel @inject Microsoft.AspNetCore.Antiforgery.IAntiforgery Antiforgery @{ ViewData["Title"] = StringValues["Messages"]; } @section Head { } @if (!Model.IsAdmin) { @* no account: the admin password is checked by PrivateMessageController.Login *@

@StringValues["Messages"]

} else { @* messages are loaded as JSON from PrivateMessageController by inbox.js *@

@StringValues["Messages"]

@StringValues["Loading"]

    } @section Scripts { @if (Model.IsAdmin) { } }