@using WebSharpRSS.Models @using Serilog @using ToolQit.Extensions @inject IDialogService _dialogService @if (Items != null) { foreach (var feedItemData in Items) {
@if (feedItemData.FaviconUrl != null) { }
@if (feedItemData.Title != null) { @((MarkupString)feedItemData.Title) }
@if (feedItemData.Description != null && !feedItemData.Description.IsNullEmptyWhiteSpace()) { @((MarkupString)feedItemData.Description) } else { No description found! }
@feedItemData.PublishingDate.ToString()
} } else { No items to load! }
@code { [Parameter] public HashSet? Items { get; set; } DialogOptions _dialogOptions = new DialogOptions() { FullWidth = true, MaxWidth = MaxWidth.ExtraLarge, NoHeader = true, CloseButton = true, CloseOnEscapeKey = true }; private void Callback(SyndicationItemData syndicationItem) { var parameters = new DialogParameters(); parameters.Add("Data", syndicationItem); _dialogService.Show("", parameters, _dialogOptions); Log.Verbose("Item: {ItemId} clicked", syndicationItem.Link); } }