@model Project_Unite.Models.ForumCategory @{ ViewBag.Title = "View forum"; }
@Model.Description
@if (Model.Children.Length > 0) {| Subforums | Topics | Posts | Most Recent Post |
|---|---|---|---|
| @Html.ActionLink(cat.Name, "ViewForum", "Forum", new { id = cat.Id }, null)
@cat.Description |
@cat.Topics.Length |
| Topics | Posts | Most recent post |
|---|---|---|
|
@if(topic.IsUnlisted == true)
{
}
@if (topic.IsLocked == true)
{
}
@Html.ActionLink(topic.Subject, "ViewTopic", "Forum", new { id = topic.Discriminator }, null)
Started by @Html.UserLink(topic.AuthorId) on @topic.StartedAt |
@topic.Posts.Length |
@if (topic.Posts.Length > 0)
{
var mostRecent = topic.Posts.OrderByDescending(x => x.PostedAt).First();
Re: @topic.Subject
by @Html.UserLink(mostRecent.AuthorId)
at @mostRecent.PostedAt } else { No posts. } |
|
@if(topic.IsUnlisted == true)
{
}
@if (topic.IsLocked == true)
{
}
@Html.ActionLink(topic.Subject, "ViewTopic", "Forum", new { id = topic.Discriminator }, null)
Started by @Html.UserLink(topic.AuthorId) on @topic.StartedAt |
@topic.Posts.Length |
@if (topic.Posts.Length > 0)
{
var mostRecent = topic.Posts.OrderByDescending(x => x.PostedAt).First();
Re: @topic.Subject
by @Html.UserLink(mostRecent.AuthorId)
at @mostRecent.PostedAt } else { No posts. } |
No topics exist in this category. Be the first to start one!
}