@model BTCPayServer.Models.NotificationViewModels.NotificationIndexViewModel @{ ViewData["Title"] = "Notifications"; string status = ViewBag.Status; var statusFilterCount = CountArrayFilter("type"); var storesFilterCount = CountArrayFilter("storeid"); } @functions { private int CountArrayFilter(string type) => Model.Search.ContainsFilter(type) ? Model.Search.GetFilterArray(type).Length : 0; private bool HasArrayFilter(string type, string key = null) => Model.Search.ContainsFilter(type) && (key is null || Model.Search.GetFilterArray(type).Contains(key)); } @section PageHeadContent { }
@if (Model.Items.Count > 0) {
@if (Model.Items.Any()) {
@foreach (var item in Model.Items) { }
Message
Date
Actions
@if (Model.Status == "Unread") { }
0 selected
@item.Body @item.Created.ToTimeAgo()
@if (!string.IsNullOrEmpty(item.ActionLink)) { Details } @if (!item.Seen) { }
}
} else {

There are no notifications.

} @section PageFootContent { }