comments ...
parent
f7b6b5e305
commit
5e5c6d57ea
@ -1,11 +1,16 @@
|
|||||||
@model Comment
|
@model Comment
|
||||||
|
|
||||||
<div data-type="blogcomment" data-id="@Model.Id" data-allow-edit="@(User.GetUserId()==Model.AuthorId?"true":"false")"
|
<div data-type="blogcomment" data-id="@Model.Id" data-allow-edit="@(User.GetUserId()==Model.AuthorId?"true":"false")"
|
||||||
data-allow-moderate="@ViewData["moderatoFlag"]" data-date="@Html.Raw(Model.DateCreated)" data-username="@Model.Author.UserName" >
|
data-allow-moderate="@ViewData["moderatoFlag"]" data-date="@Model.DateCreated.ToString("yyyy-MM-dd hh:mm:ss")" data-username="@Model.Author.UserName" >
|
||||||
<asciidoc>@Model.Content</asciidoc>
|
<asciidoc>@Model.Content</asciidoc>
|
||||||
|
|
||||||
|
@if (Model.Children!=null) {
|
||||||
<div class="subcomments">
|
<div class="subcomments">
|
||||||
@if (Model.Children!=null && Model.Children.Count>0) {
|
@foreach (var comment in Model.Children)
|
||||||
foreach (var comment in Model.Children) {
|
{
|
||||||
@Html.DisplayFor(model=>comment,"Comment","Comment")
|
Html.DisplayFor(model=>comment,"Comment","Comment");
|
||||||
} }
|
}
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue