blob: 260999e5cc63c03a6179506fc346a49d85f974b1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
@model Project_Unite.Models.ForumPost[]
@{
ViewBag.Title = "Unread posts";
}
<h2>Unread Forum Posts</h2>
<p>Here is a summary of what's been said since you last visited the forums:</p>
<table class="table">
<tr>
<th style="width:75%">Post</th>
<th>Actions</th>
</tr>
@if(Model.Length == 0)
{
<tr>
<td><em>No unread posts! You're all caught up :)</em></td>
<td></td>
</tr>
}
@foreach(var post in Model)
{
<tr>
<td>re: @Html.TopicLinkFor(post.Parent) <br/>
<p>By <strong>@Html.UserLink(post.AuthorId)</strong> on @post.PostedAt</p>
</td>
<td>
@Html.ActionLink("Mark as read", "MarkRead", "Forum", new { id = post.Id }, new { @class = "btn btn-default" });
</td>
</tr>
}
</table>
|