From 32e2eecdd4904383df6c377cb3ea64f8f0a8f1e4 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 27 Mar 2017 16:11:39 -0400 Subject: Finish unread posts --- Project-Unite/Views/Forum/ViewUnread.cshtml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Project-Unite/Views/Forum/ViewUnread.cshtml (limited to 'Project-Unite/Views/Forum/ViewUnread.cshtml') diff --git a/Project-Unite/Views/Forum/ViewUnread.cshtml b/Project-Unite/Views/Forum/ViewUnread.cshtml new file mode 100644 index 0000000..260999e --- /dev/null +++ b/Project-Unite/Views/Forum/ViewUnread.cshtml @@ -0,0 +1,34 @@ +@model Project_Unite.Models.ForumPost[] +@{ + ViewBag.Title = "Unread posts"; +} + +

Unread Forum Posts

+ +

Here is a summary of what's been said since you last visited the forums:

+ + + + + + + @if(Model.Length == 0) + { + + + + + } + @foreach(var post in Model) + { + + + + + + } +
PostActions
No unread posts! You're all caught up :)
re: @Html.TopicLinkFor(post.Parent)
+

By @Html.UserLink(post.AuthorId) on @post.PostedAt

+
+ @Html.ActionLink("Mark as read", "MarkRead", "Forum", new { id = post.Id }, new { @class = "btn btn-default" }); +
\ No newline at end of file -- cgit v1.2.3