From 588d21569c6a6adfcb9a75c29c57c43dc7954f06 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 17 May 2017 16:23:55 -0400 Subject: individual post subjects --- Project-Unite/Views/Forum/ViewForum.cshtml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Project-Unite/Views/Forum/ViewForum.cshtml') diff --git a/Project-Unite/Views/Forum/ViewForum.cshtml b/Project-Unite/Views/Forum/ViewForum.cshtml index e4b528f..92fb802 100644 --- a/Project-Unite/Views/Forum/ViewForum.cshtml +++ b/Project-Unite/Views/Forum/ViewForum.cshtml @@ -37,6 +37,18 @@ } } +@{ + var db = new Project_Unite.Models.ApplicationDbContext(); + var globals = Model.Topics.Where(x => x.ShouldShow == true&&x.IsGlobal==true).OrderByDescending(x => x.StartedAt); + +} + +@if (globals.Count() > 0) +{ +
+ +} +
@if (Model.Topics.Length > 0) @@ -58,6 +70,11 @@
@topic.Posts.Length
+
+ @topic.Posts.OrderByDescending(x => x.PostedAt).First().Subject
+ by @Html.UserLink(topic.Posts.OrderByDescending(x => x.PostedAt).First().AuthorId)
+ at @topic.Posts.OrderByDescending(x => x.PostedAt).First().PostedAt +
} } -- cgit v1.2.3