diff --git a/Newsbot.Portal.Blazor.Server/Pages/Sources/List.razor b/Newsbot.Portal.Blazor.Server/Pages/Sources/List.razor
index aa1b953..c4f10b0 100644
--- a/Newsbot.Portal.Blazor.Server/Pages/Sources/List.razor
+++ b/Newsbot.Portal.Blazor.Server/Pages/Sources/List.razor
@@ -1,4 +1,4 @@
-@page "/sources/list"
+@page "/sources"
@using Newsbot.Collector.Client
@using Newsbot.Collector.Client.Domain.Dto
@@ -8,6 +8,7 @@
Title |
Publish Date |
+ Tags |
@foreach (var item in Data ??= new List())
{
@@ -21,12 +22,34 @@
@item.Name
@item.Source |
+ @FlattenTags(@item.Tags ??= new List()) |
+
+ View News
+ |
}
@code {
- private List Data { get; set; }
+ private List? Data { get; set; }
+
+ private string FlattenTags(List tags)
+ {
+
+ string res = "";
+ foreach (var tag in tags)
+ {
+ if (res == "")
+ {
+ res = tag;
+ }
+ else
+ {
+ res += $", {tag}";
+ }
+ }
+ return res;
+ }
protected override async Task OnInitializedAsync()
{