@model Project_Unite.Models.ForumTopic @using Microsoft.AspNet.Identity @{ ViewBag.Title = Model.Subject; } @if(ViewBag.Error != null) {
@ViewBag.Error
This topic is unlisted. Only those with the topic link as well as moderators may see this topic. Please respect its privacy.
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)) { if (Request.IsAuthenticated) { if (ACL.IsUnread(User.Identity.GetUserId(), post.Id)) { ACL.MarkRead(User.Identity.GetUserId(), post.Id); } }@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" }) } }
}@Html.UserLink(post.AuthorId) at @post.PostedAt
@Html.Markdown(post.Body)
@{ Html.RenderPartial("~/Views/Shared/_PostModerationBar.cshtml", post); }