|
|
@ -1,6 +1,7 @@ |
|
|
@page |
|
|
@page |
|
|
@inherits Volo.Blogging.Pages.Blog.BloggingPage |
|
|
@inherits Volo.Blogging.Pages.Blog.BloggingPage |
|
|
@using Microsoft.AspNetCore.Authorization |
|
|
@using Microsoft.AspNetCore.Authorization |
|
|
|
|
|
@using Microsoft.AspNetCore.Http.Extensions |
|
|
@using Volo.Blogging |
|
|
@using Volo.Blogging |
|
|
@using Volo.Blogging.Pages.Blog.Posts |
|
|
@using Volo.Blogging.Pages.Blog.Posts |
|
|
@inject IAuthorizationService Authorization |
|
|
@inject IAuthorizationService Authorization |
|
|
@ -153,6 +154,12 @@ |
|
|
<a asp-page="/Blog/Posts/Index" asp-route-blogShortName="@Model.BlogShortName" asp-route-tagName="@tag.Name" class="tag">@tag.Name</a> |
|
|
<a asp-page="/Blog/Posts/Index" asp-route-blogShortName="@Model.BlogShortName" asp-route-tagName="@tag.Name" class="tag">@tag.Name</a> |
|
|
} |
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<a class="twitter-share-button" |
|
|
|
|
|
href="@Model.GetTwitterShareUrl(Model.Post.Title, HttpContext.Request.GetEncodedUrl())" target="_blank"> |
|
|
|
|
|
Tweet |
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
|
<div class="comment-form mt-4"> |
|
|
<div class="comment-form mt-4"> |
|
|
<div class="vs-blog-title mb-0"> |
|
|
<div class="vs-blog-title mb-0"> |
|
|
<h3>@L["LeaveComment"]</h3> |
|
|
<h3>@L["LeaveComment"]</h3> |
|
|
@ -186,7 +193,7 @@ |
|
|
@commentWithRepliesDto.Comment.Text |
|
|
@commentWithRepliesDto.Comment.Text |
|
|
</p> |
|
|
</p> |
|
|
<div class="comment-buttons font-75 bg-light"> |
|
|
<div class="comment-buttons font-75 bg-light"> |
|
|
|
|
|
|
|
|
@if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Create)) |
|
|
@if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Create)) |
|
|
{ |
|
|
{ |
|
|
<a href="#" class="tag replyLink" data-relpyid="@commentWithRepliesDto.Comment.Id"> |
|
|
<a href="#" class="tag replyLink" data-relpyid="@commentWithRepliesDto.Comment.Id"> |
|
|
@ -210,7 +217,7 @@ |
|
|
</a> |
|
|
</a> |
|
|
} |
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
@if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Create)) |
|
|
@if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Create)) |
|
|
{ |
|
|
{ |
|
|
<div class="comment-form mt-4 replyForm"> |
|
|
<div class="comment-form mt-4 replyForm"> |
|
|
@ -221,13 +228,13 @@ |
|
|
</h3> |
|
|
</h3> |
|
|
<div> |
|
|
<div> |
|
|
<form method="post"> |
|
|
<form method="post"> |
|
|
<input name="postId" value="@Model.Post.Id" hidden/> |
|
|
<input name="postId" value="@Model.Post.Id" hidden /> |
|
|
<input name="repliedCommentId" value="@commentWithRepliesDto.Comment.Id" hidden/> |
|
|
<input name="repliedCommentId" value="@commentWithRepliesDto.Comment.Id" hidden /> |
|
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<textarea class="form-control no-border" name="text" id="textBoxId" rows="4"></textarea> |
|
|
<textarea class="form-control no-border" name="text" id="textBoxId" rows="4"></textarea> |
|
|
</div> |
|
|
</div> |
|
|
<abp-button button-type="Primary" class="btn-rounded float-right" type="submit" text="@L["Comment"].Value"/> |
|
|
<abp-button button-type="Primary" class="btn-rounded float-right" type="submit" text="@L["Comment"].Value" /> |
|
|
</form> |
|
|
</form> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -263,7 +270,7 @@ |
|
|
@reply.Text |
|
|
@reply.Text |
|
|
</p> |
|
|
</p> |
|
|
<div class="comment-buttons font-75 bg-light"> |
|
|
<div class="comment-buttons font-75 bg-light"> |
|
|
|
|
|
|
|
|
@if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Create)) |
|
|
@if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Create)) |
|
|
{ |
|
|
{ |
|
|
<a href="#" class="tag replyLink" data-relpyid="@commentWithRepliesDto.Comment.Id"> |
|
|
<a href="#" class="tag replyLink" data-relpyid="@commentWithRepliesDto.Comment.Id"> |
|
|
|