yavsc/src/Org/Views/Shared/Components/Comment/Default.cshtml

16 lines
634 B
Text
Raw Normal View History

2017-10-20 15:14:16 +02:00
@model Comment
2024-12-14 23:49:13 +00:00
2024-12-15 20:48:04 +00:00
<div data-type="blogcomment" data-id="@Model.Id" data-receiver-id="@Model.ReceiverId" data-allow-edit="@(User.GetUserId()==Model.AuthorId?"true":"false")"
2024-12-14 23:49:13 +00:00
data-allow-moderate="@ViewData["moderatoFlag"]" data-date="@Model.DateCreated.ToString("yyyy-MM-dd hh:mm:ss")" data-username="@Model.Author.UserName" >
2026-02-22 19:59:33 +00:00
<asciidoc>@Model.Article</asciidoc>
2024-12-14 23:49:13 +00:00
@if (Model.Children!=null) {
<div class="subcomments">
@foreach (var comment in Model.Children)
{
2024-12-15 20:48:04 +00:00
@await this.Component.InvokeAsync("Comment", new { id = comment.Id});
2024-12-14 23:49:13 +00:00
}
</div>
}
2017-10-20 15:14:16 +02:00
</div>
2024-12-15 20:48:04 +00:00