@page
@model GanjooRazor.Areas.User.Pages.NotificationsModel
@using DNTPersianUtils.Core
@{
Layout = "_UserPanelLayout";
ViewData["Title"] = "اعلانهای من";
await GanjooRazor.Utils.GanjoorSessionChecker.ApplyPermissionsToViewData(Request, Response, ViewData);
}
@if (Model.LastError != "")
{
@Model.LastError
}
else
{
@if (Model.Notifications.Count == 0)
{
}
else
{
@foreach (var notification in Model.Notifications)
{
bool unread = notification.Status == RSecurityBackend.Models.Notification.NotificationStatus.Unread;
@notification.Subject
@notification.DateTime.ToFriendlyPersianDateTextify()
@Html.Raw(notification.HtmlText)
}
}
}