@using Petwork.Domain.Entities @using Petwork.Web.Models.Miniperson @model News @{ ViewBag.Title = "NewsDetail"; Layout = "~/Views/Shared/_LayoutThreeBars.cshtml"; Html.DoSelect("TopToolbar", "News"); }
@if (!Model.IsPublished) { @Resources.News.Edit }

@Model.Title

@Model.Title @Html.Raw(Model.ContentHtml)

@if (Model.IsPublished) {
@Html.LikeCount(ResourceType.News, Model.Id) @Html.LikeLink(ResourceType.News, Model.Id) @Html.ShareLink(ResourceType.News, Model.Id) @Html.DenounceLink(ResourceType.News, Model.Id)
} @Html.Partial("_MiniPerson", new MiniPersonModel{Account = Model.Owner, Date = Model.IsPublished ? Model.Published : Model.Created})
@if (Model.IsPublished) { @Html.Action("PreloadComments", "Comment", new { resourceType = ResourceType.News, resourceId = Model.Id})
}
@section sidebar { @Html.Partial("_SidebarNews") }