From e23d11450b77beb71c47fcce9ed5b372b06430f0 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Wed, 30 Sep 2026 07:38:53 +0330 Subject: [PATCH] people tags #387 --- .../PageTypes/_PoemPagePartial.cshtml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_PoemPagePartial.cshtml b/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_PoemPagePartial.cshtml index 306597e2..177a6597 100644 --- a/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_PoemPagePartial.cshtml +++ b/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_PoemPagePartial.cshtml @@ -444,6 +444,28 @@ + @{ + // distinct persons tagged in this poem (same GeoDateTags rows the map below uses - + // already filtered to approved/non-machine-generated tags by GetPoemGeoDateTagsAsync) + var poemTaggedPersons = Model.GanjoorPage.Poem.GeoDateTags + .Where(t => t.Person != null) + .GroupBy(t => t.PersonId) + .Select(g => g.First().Person) + .ToList(); + } + @if (poemTaggedPersons.Count > 0) + { +
+
شخصیت‌های نامبرده در این شعر
+

+ @foreach (var taggedPerson in poemTaggedPersons) + { + @taggedPerson.Name + } +

+
+ } + @if (!Model.OfflineMode && Model.GanjoorPage.Poem.GeoDateTags.Any(t => t.Location != null)) {