From 769ce3d82c27de35467b884616ef829a02eeaf30 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Tue, 4 Aug 2020 15:35:22 +0300 Subject: [PATCH] Update Default.cshtml --- .../CmsKit/Shared/Components/Commenting/Default.cshtml | 9 ++++----- 1 file changed, 4 insertions(+), 5 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 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)