diff options
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> } } |
