Blog comment comments
This commit is contained in:
parent
02c4d05a84
commit
1bde106195
10 changed files with 39 additions and 117 deletions
|
|
@ -1 +0,0 @@
|
|||
@model Comment
|
||||
16
src/Yavsc/Views/Shared/Components/Comment/Default.cshtml
Normal file
16
src/Yavsc/Views/Shared/Components/Comment/Default.cshtml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
@model Comment
|
||||
|
||||
<div data-type="blogcomment" data-id="@Model.Id" data-receiver-id="@Model.ReceiverId" data-allow-edit="@(User.GetUserId()==Model.AuthorId?"true":"false")"
|
||||
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>
|
||||
|
||||
@if (Model.Children!=null) {
|
||||
<div class="subcomments">
|
||||
@foreach (var comment in Model.Children)
|
||||
{
|
||||
@await this.Component.InvokeAsync("Comment", new { id = comment.Id});
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue