@using WebSharpRSS.Models @using Serilog @using ToolQit.Extensions @inject IDialogService _dialogService @if (Items != null) { foreach (var feedItemData in Items) {
@if (feedItemData.SyndicationParent.Category != null && !feedItemData.SyndicationParent.Category.Icon.IsNullEmptyWhiteSpace()) { } @if (feedItemData.SyndicationParent.ImageUrl != null) { }
@if (feedItemData.Title != null) { @((MarkupString)feedItemData.Title) }
- @feedItemData.SyndicationParent.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 = false, CloseButton = true, CloseOnEscapeKey = true }; private void Callback(SyndicationItemData syndicationItem) { var parameters = new DialogParameters(); parameters.Add("Data", syndicationItem); _dialogService.Show("Custom", parameters, _dialogOptions); Log.Verbose("Item: {ItemId} clicked", syndicationItem.Link); } }