improving all comments page

This commit is contained in:
Hamid Reza Mohammadi 2021-05-22 16:43:24 +04:30
parent 153fefd2e5
commit e7e50520df
2 changed files with 4 additions and 4 deletions

View File

@ -78,8 +78,8 @@ namespace GanjooRazor.Pages
foreach (var comment in comments)
{
string commentAuthorLink = comment.UserId == null ? comment.AuthorName : $"<a href=\"/hashieha/?userid={comment.UserId}\">{comment.AuthorName}</a>";
htmlText += $"<blockquote>{comment.HtmlComment}{Environment.NewLine}" +
$"<p>{commentAuthorLink} <small>در {comment.CommentDate.ToFriendlyPersianDateTextify()}</small> دربارهٔ <a href=\"{comment.Poem.UrlSlug}#comment-{comment.Id}\">{comment.Poem.Title}</a>" +
htmlText += $"<p>{commentAuthorLink} <small>در {comment.CommentDate.ToFriendlyPersianDateTextify()}</small> دربارهٔ <a href=\"{comment.Poem.UrlSlug}#comment-{comment.Id}\">{comment.Poem.Title}</a>:</p>" +
$"<blockquote>{comment.HtmlComment}{Environment.NewLine}" +
$"</blockquote>{Environment.NewLine}<hr />{Environment.NewLine}";
}

View File

@ -8,6 +8,6 @@
},
"AllowedHosts": "*",
"GoogleAnalyticsCode": "",
"APIRoot": "http://localhost:3439",
"GlobalAPIRoot": "http://localhost:3439"
"APIRoot": "https://ganjgah.ir",
"GlobalAPIRoot": "https://ganjgah.ir"
}