|
|
|
@ -27,7 +27,7 @@ |
|
|
|
<abp-input asp-for="FocusCommentId" class="m-0" /> |
|
|
|
<div class="container"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-8 col-lg-8 mx-auto"> |
|
|
|
<div class="col-10 col-md-8 col-lg-7 mx-auto"> |
|
|
|
<section class="hero-section"> |
|
|
|
<div class="hero-articles"> |
|
|
|
<div class="hero-content"> |
|
|
|
@ -86,7 +86,7 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-8 col-lg-8 mx-auto"> |
|
|
|
<div class="col-10 col-md-8 col-lg-7 mx-auto"> |
|
|
|
<section class="post-content"> |
|
|
|
<p> |
|
|
|
@Html.Raw(RenderMarkdownToHtml(Model.Post.Content)) |
|
|
|
@ -96,8 +96,8 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-8 col-lg-8 mx-auto"> |
|
|
|
<hr /> |
|
|
|
<div class="col-10 col-md-8 col-lg-7 mx-auto"> |
|
|
|
<hr /> |
|
|
|
<div class="mb-2 mt-1"> |
|
|
|
@(L["ShareOn"].Value + " :") |
|
|
|
<a href="#" target="_blank" class="mr-2" id="TwitterShareLink" title="Twitter"> |
|
|
|
@ -121,7 +121,6 @@ |
|
|
|
</div> |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@if (Model.CommentsWithReplies.Count > 0) |
|
|
|
{ |
|
|
|
<abp-row v-align="Start"> |
|
|
|
@ -191,7 +190,7 @@ |
|
|
|
<input name="repliedCommentId" value="@commentWithRepliesDto.Comment.Id" hidden /> |
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
|
<textarea class="form-control no-border" name="text" id="textBoxId" rows="4"></textarea> |
|
|
|
<textarea class="form-control" name="text" id="textBoxId" rows="4"></textarea> |
|
|
|
</div> |
|
|
|
<abp-button button-type="Primary" class="btn-rounded float-right" type="submit" text="@L["Comment"].Value" /> |
|
|
|
<abp-button button-type="Danger" class="btn-rounded float-right replyCancelButton" text="@L["Cancel"].Value" /> |
|
|
|
@ -208,7 +207,7 @@ |
|
|
|
<form class="editFormClass"> |
|
|
|
<input name="commentId" value="@commentWithRepliesDto.Comment.Id" hidden /> |
|
|
|
<div class="form-group"> |
|
|
|
<textarea class="form-control no-border" name="text" id="textBoxId" rows="4">@commentWithRepliesDto.Comment.Text</textarea> |
|
|
|
<textarea class="form-control" name="text" id="textBoxId" rows="4">@commentWithRepliesDto.Comment.Text</textarea> |
|
|
|
</div> |
|
|
|
<abp-button button-type="Primary" class="btn-rounded float-right" type="submit" text="@L["Submit"].Value" /> |
|
|
|
<abp-button button-type="Danger" class="btn-rounded float-right editCancelButton" text="@L["Cancel"].Value" /> |
|
|
|
@ -258,7 +257,7 @@ |
|
|
|
@if (hasCommentingPermission) |
|
|
|
{ |
|
|
|
<div class="comment-form mt-4 replyForm"> |
|
|
|
<div class="clearfix bg-light p-4"> |
|
|
|
<div class="clearfix bg-light py-4"> |
|
|
|
<h3 class="mt-0"> |
|
|
|
@L["ReplyTo", commentWithRepliesDto.Comment.Writer == null ? "" : commentWithRepliesDto.Comment.Writer.UserName] |
|
|
|
</h3> |
|
|
|
@ -267,7 +266,7 @@ |
|
|
|
<input name="postId" value="@Model.Post.Id" hidden /> |
|
|
|
<input name="repliedCommentId" value="@commentWithRepliesDto.Comment.Id" hidden /> |
|
|
|
<div class="form-group"> |
|
|
|
<textarea class="form-control no-border" name="text" id="textBoxId" rows="4"></textarea> |
|
|
|
<textarea class="form-control" name="text" id="textBoxId" rows="4"></textarea> |
|
|
|
</div> |
|
|
|
<abp-button button-type="Primary" class="btn-rounded float-right" type="submit" text="@L["Submit"].Value" /> |
|
|
|
<abp-button button-type="Danger" class="btn-rounded float-right replyCancelButton" text="@L["Cancel"].Value" /> |
|
|
|
@ -279,12 +278,12 @@ |
|
|
|
@if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Update) || (CurrentUser.Id == commentWithRepliesDto.Comment.CreatorId)) |
|
|
|
{ |
|
|
|
<div class="comment-form mt-4 editForm"> |
|
|
|
<div class="clearfix bg-light p-4"> |
|
|
|
<div class="clearfix bg-light py-4"> |
|
|
|
<div> |
|
|
|
<form class="editFormClass"> |
|
|
|
<input name="commentId" value="@reply.Id" hidden /> |
|
|
|
<div class="form-group"> |
|
|
|
<textarea class="form-control no-border" name="text" id="textBoxId" rows="4">@reply.Text</textarea> |
|
|
|
<textarea class="form-control" name="text" id="textBoxId" rows="4">@reply.Text</textarea> |
|
|
|
</div> |
|
|
|
<abp-button button-type="Primary" class="btn-rounded float-right" type="submit" text="@L["Submit"].Value" /> |
|
|
|
<abp-button button-type="Danger" class="btn-rounded float-right editCancelButton" text="@L["Cancel"].Value" /> |
|
|
|
@ -308,13 +307,13 @@ |
|
|
|
<div class="vs-blog-title mb-0"> |
|
|
|
<h3>@L["LeaveComment"]</h3> |
|
|
|
</div> |
|
|
|
<div class="clearfix bg-light p-4"> |
|
|
|
<div class="clearfix bg-light py-4"> |
|
|
|
<div> |
|
|
|
<form method="post"> |
|
|
|
<input name="postId" value="@Model.Post.Id" hidden /> |
|
|
|
<input name="repliedCommentId" id="repliedCommentId" hidden /> |
|
|
|
<div class="form-group"> |
|
|
|
<textarea class="form-control no-border" name="text" id="textBoxId" rows="4"></textarea> |
|
|
|
<textarea class="form-control" name="text" id="textBoxId" rows="4"></textarea> |
|
|
|
</div> |
|
|
|
<abp-button button-type="Primary" class="btn-rounded float-right" type="submit" text="@L["Submit"].Value" /> |
|
|
|
</form> |
|
|
|
|