Integrated Person View

This commit is contained in:
Simon Martens
2023-07-04 08:36:25 +02:00
parent cf0bc3cddf
commit 04ebd5d90d
10 changed files with 40 additions and 33 deletions

View File

@@ -137,7 +137,7 @@ public class SucheController : Controller {
letters = metasbyyear
.Where(x => x.Key >= pages[page].StartYear && x.Key <= pages[page].EndYear)
.Select(x => (x.Key, x
.Select(y => Briefecontroller.GenerateMetaViewModel(lib, y, true))
.Select(y => Briefecontroller.GenerateMetaViewModel(lib, y, false))
.OrderBy(x => x.Meta.Sort)
.ThenBy(x => x.Meta.Order)
.ToList()))
@@ -237,7 +237,7 @@ public class SucheController : Controller {
parsedSubComments.Add(HTMLHelpers.CommentHelpers.CreateHTML(lib, _readerService, subcommobj, category, Settings.ParsingState.CommentType.Subcomment));
}
}
res.Add(new CommentModel(parsedComment, parsedSubComments));
res.Add(new CommentModel(parsedComment, parsedSubComments, comm.Item1));
}
return res;
}