@model Project_Unite.Models.ForumTopic @using Microsoft.AspNet.Identity @{ ViewBag.Title = Model.Subject; } @if(ViewBag.Error != null) {

@ViewBag.Error

} @if(Model.IsUnlisted == true) {

This topic is unlisted. Only those with the topic link as well as moderators may see this topic. Please respect its privacy.

}

@Model.Subject

Started by @Html.UserLink(Model.AuthorId) at @Model.StartedAt

@{ Html.RenderPartial("~/Views/Shared/_ModeratorBar.cshtml", Model); } @foreach (var post in Model.Posts.OrderBy(x => x.PostedAt)) {

@Html.UserLink(post.AuthorId)
@{ var user = ACL.GetUserInfo(post.AuthorId);

@user.Codepoints Codepoints

@user.HighestRole.Name

@if (ACL.Granted(User.Identity.Name, "CanAccessModCP")) { if (ACL.Granted(User.Identity.Name, "CanViewUserInfo")) { @Html.ActionLink("User info", "UserDetails", "Moderator", new { id = ACL.UserNameRaw(post.AuthorId) }, new { @class = "btn btn-default" }) } }

}

@Model.Subject

@Html.UserLink(post.AuthorId) at @post.PostedAt

@Html.Markdown(post.Body)

@{ Html.RenderPartial("~/Views/Shared/_PostModerationBar.cshtml", post); }
} @{ Html.RenderPartial("~/Views/Shared/_ModeratorBar.cshtml", Model); }