diff options
| author | Michael <[email protected]> | 2017-05-17 16:23:55 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-17 16:23:55 -0400 |
| commit | 588d21569c6a6adfcb9a75c29c57c43dc7954f06 (patch) | |
| tree | 75634d29d404e55372e9043a2dee3c2cf528a197 /Project-Unite/Views/Forum/ViewForum.cshtml | |
| parent | 7bc8f60923470059ea0322c52cc05b0c6adae37e (diff) | |
| download | project-unite-588d21569c6a6adfcb9a75c29c57c43dc7954f06.tar.gz project-unite-588d21569c6a6adfcb9a75c29c57c43dc7954f06.tar.bz2 project-unite-588d21569c6a6adfcb9a75c29c57c43dc7954f06.zip | |
individual post subjects
Diffstat (limited to 'Project-Unite/Views/Forum/ViewForum.cshtml')
| -rw-r--r-- | Project-Unite/Views/Forum/ViewForum.cshtml | 17 |
1 files changed, 17 insertions, 0 deletions
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) +{ + <hr /> + +} + <hr/> @if (Model.Topics.Length > 0) @@ -58,6 +70,11 @@ <div class="col-xs-2"> <strong>@topic.Posts.Length</strong> </div> + <div class="col-xs-4"> + @topic.Posts.OrderByDescending(x => x.PostedAt).First().Subject <br /> + by @Html.UserLink(topic.Posts.OrderByDescending(x => x.PostedAt).First().AuthorId) <br/> + at @topic.Posts.OrderByDescending(x => x.PostedAt).First().PostedAt + </div> </div> } } |
