From 5e82869e1bf82ab2b762e9f8deb097eb71c1142a Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Mon, 2 Dec 2024 15:52:18 +0800 Subject: [PATCH] Add Delete button to Blog post comment reply --- .../Components/Commenting/Default.cshtml | 48 ++++++++++--------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml index 1b86ade0a8..873113a5a2 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml +++ b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/Default.cshtml @@ -87,32 +87,36 @@ Func GetCommentActionArea(Guid id, Guid authorId, bool isReply) => @
@if (!isReply) - { - @if (CurrentUser.IsAuthenticated) - { - - @L["Reply"] - + { + @if (CurrentUser.IsAuthenticated) + { + + @L["Reply"] + - - @L["Delete"] - - } - else - { - - @L["LoginToReply"] - - } - } + + @L["Delete"] + + } + else + { + + @L["LoginToReply"] + + } + } @if (authorId == CurrentUser.Id) - { - - @L["Edit"] - - } + { + + @L["Edit"] + + + + @L["Delete"] + + }
; } @{