From 9ac68d77c91dbd3bdeb5a9b4df2f4fee20c66f06 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Thu, 8 Jul 2021 16:50:39 +0430 Subject: [PATCH] #175 in-reply-to in all comments page --- GanjooRazor/Pages/_HashiehaPage.cshtml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GanjooRazor/Pages/_HashiehaPage.cshtml.cs b/GanjooRazor/Pages/_HashiehaPage.cshtml.cs index 23f837d6..6510a218 100644 --- a/GanjooRazor/Pages/_HashiehaPage.cshtml.cs +++ b/GanjooRazor/Pages/_HashiehaPage.cshtml.cs @@ -78,7 +78,8 @@ namespace GanjooRazor.Pages foreach (var comment in comments) { string commentAuthorLink = comment.UserId == null ? comment.AuthorName : $"{comment.AuthorName}"; - htmlText += $"

{commentAuthorLink} در {comment.CommentDate.ToFriendlyPersianDateTextify()} دربارهٔ {comment.Poem.Title}:

" + + string inReplyTo = comment.InReplayTo == null ? "" : $" در پاسخ به {comment.InReplayTo.AuthorName} "; + htmlText += $"

{commentAuthorLink} در {comment.CommentDate.ToFriendlyPersianDateTextify()}{inReplyTo} دربارهٔ {comment.Poem.Title}:

" + $"
{comment.HtmlComment}{Environment.NewLine}" + $"
{Environment.NewLine}
 

{Environment.NewLine}"; }