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 + } +
+