diff --git a/Project-Unite/Views/Forum/ViewForum.cshtml b/Project-Unite/Views/Forum/ViewForum.cshtml index 92fb802..185b840 100644 --- a/Project-Unite/Views/Forum/ViewForum.cshtml +++ b/Project-Unite/Views/Forum/ViewForum.cshtml @@ -46,6 +46,49 @@ @if (globals.Count() > 0) {
+
+
Global announcements
+
Posts
+
Most recent post
+
+ foreach (var topic in globals) + { +
+
+ @if (topic.IsSticky) + { + + } + @if (topic.IsAnnounce) + { + + } + @if (topic.IsGlobal) + { + + } + @if (topic.IsUnlisted) + { + + } + @if (topic.IsLocked) + { + + } + @Html.ActionLink(topic.Subject, "ViewTopic", "Forum", new { id = topic.Discriminator }, null) +
+

Started by @Html.UserLink(topic.AuthorId) at @topic.StartedAt • @topic.Likes.Length • @topic.Dislikes.Length

+
+
+ @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 +
+
+ } } @@ -63,6 +106,26 @@ {
+ @if (topic.IsSticky) + { + + } + @if (topic.IsAnnounce) + { + + } + @if (topic.IsGlobal) + { + + } + @if (topic.IsUnlisted) + { + + } + @if (topic.IsLocked) + { + + } @Html.ActionLink(topic.Subject, "ViewTopic", "Forum", new { id = topic.Discriminator }, null)

Started by @Html.UserLink(topic.AuthorId) at @topic.StartedAt • @topic.Likes.Length • @topic.Dislikes.Length