comments ...
This commit is contained in:
parent
fdf5ee915e
commit
710c04d5f9
6 changed files with 32 additions and 17 deletions
|
|
@ -1,11 +1,16 @@
|
|||
@model Comment
|
||||
|
||||
<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>
|
||||
<div class="subcomments">
|
||||
@if (Model.Children!=null && Model.Children.Count>0) {
|
||||
foreach (var comment in Model.Children) {
|
||||
@Html.DisplayFor(model=>comment,"Comment","Comment")
|
||||
} }
|
||||
</div>
|
||||
|
||||
@if (Model.Children!=null) {
|
||||
<div class="subcomments">
|
||||
@foreach (var comment in Model.Children)
|
||||
{
|
||||
Html.DisplayFor(model=>comment,"Comment","Comment");
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue