yavsc/src/Yavsc/Views/Shared/DisplayTemplates/Comment.cshtml

16 lines
588 B
Text
Raw Normal View History

2017-10-20 15:14:16 +02:00
@model Comment
2024-12-14 23:49:13 +00:00
2017-10-20 15:14:16 +02:00
<div data-type="blogcomment" data-id="@Model.Id" 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" >
2023-04-08 01:39:37 +01:00
<asciidoc>@Model.Content</asciidoc>
2024-12-14 23:49:13 +00:00
@if (Model.Children!=null) {
<div class="subcomments">
@foreach (var comment in Model.Children)
{
Html.DisplayFor(model=>comment,"Comment","Comment");
}
</div>
}
2017-10-20 15:14:16 +02:00
</div>