Blog comment comments
This commit is contained in:
@ -1 +0,0 @@
|
||||
@model Comment
|
@ -1,6 +1,6 @@
|
||||
@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-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>
|
||||
|
||||
@ -8,9 +8,9 @@
|
||||
<div class="subcomments">
|
||||
@foreach (var comment in Model.Children)
|
||||
{
|
||||
Html.DisplayFor(model=>comment,"Comment","Comment");
|
||||
@await this.Component.InvokeAsync("Comment", new { id = comment.Id});
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
</div>
|
||||
|
@ -17,7 +17,6 @@
|
||||
@await RenderSectionAsync("header", false)
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<partial name="_Nav" />
|
||||
@RenderSection("ctxmenu", required: false)
|
||||
@if (ViewData["Notify"] != null)
|
||||
@ -37,13 +36,11 @@
|
||||
<div class="container body-container">
|
||||
@RenderBody()
|
||||
</div>
|
||||
</main>
|
||||
<footer class="border-top footer text-muted">
|
||||
<div class="container">
|
||||
© 2024 - Yavsc - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
@await RenderSectionAsync("scripts", false)
|
||||
|
||||
|
Reference in New Issue
Block a user