Browse Source

cms-kit: added admin side enhancements

pull/16476/head
Onur Pıçakcı 3 years ago
parent
commit
3b21463fb6
  1. 2
      modules/cms-kit/src/Volo.CmsKit.Admin.Application.Contracts/Volo/CmsKit/Admin/Comments/CommentWithAuthorDto.cs
  2. 11
      modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/index.js
  3. 3
      modules/cms-kit/src/Volo.CmsKit.Domain.Shared/Volo/CmsKit/Localization/Resources/en.json

2
modules/cms-kit/src/Volo.CmsKit.Admin.Application.Contracts/Volo/CmsKit/Admin/Comments/CommentWithAuthorDto.cs

@ -20,4 +20,6 @@ public class CommentWithAuthorDto
public DateTime CreationTime { get; set; }
public CmsUserDto Author { get; set; }
public string CommentUrl { get; set; }
}

11
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/index.js

@ -114,6 +114,17 @@ $(function (){
return "";
}
},
{
title: l("CommentUrl"),
data: "commentUrl",
render: function (data, type, row) {
console.log(data);
if (data !== null) {
return '<a href="' + data + '#answer-'+ row.id + '" target="_blank"><i class="fa fa-location-arrow"></i></a>';
}
return "";
}
},
{
title: l("Text"),
data: "text",

3
modules/cms-kit/src/Volo.CmsKit.Domain.Shared/Volo/CmsKit/Localization/Resources/en.json

@ -217,6 +217,7 @@
"CommentTextRequired": "Comment is required",
"CaptchaCodeErrorMessage" : "The answer you entered for the CAPTCHA was not correct. Please try again",
"CaptchaCodeMissingMessage": "The captcha code is missing!",
"UnAllowedExternalUrlMessage": "You included an unallowed external URL. Please try again without the external URL."
"UnAllowedExternalUrlMessage": "You included an unallowed external URL. Please try again without the external URL.",
"CommentUrl": "Comment Url"
}
}
Loading…
Cancel
Save