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 fd29799f8b..a22f579c7c 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 @@ -8,11 +8,12 @@ @model Volo.CmsKit.Web.Pages.CmsKit.Shared.Components.Commenting.CommentingViewComponent.CommentingViewModel @{ - Func GetCommentAuthorName(CmsUserDto author) => + Func GetCommentTitle(CmsUserDto author, DateTime creationTime) => @ @((string.IsNullOrWhiteSpace(author.Name) ? author.UserName : author.Name + " " + author.Surname).Trim()) + @creationTime.ToString() ; } @{ @@ -93,8 +94,7 @@
- @GetCommentAuthorName(comment.Author).Invoke(null) - @comment.CreationTime.ToString() + @GetCommentTitle(comment.Author, comment.CreationTime).Invoke(null)
@GetCommentContentArea(comment.Id, comment.Author.Id, false, comment.Text).Invoke(null) @@ -114,8 +114,7 @@
- @GetCommentAuthorName(reply.Author).Invoke(null) - @comment.CreationTime.ToString() + @GetCommentTitle(reply.Author, reply.CreationTime).Invoke(null)
@GetCommentContentArea(reply.Id, reply.Author.Id, true, reply.Text).Invoke(null)