improving all comments page
This commit is contained in:
parent
153fefd2e5
commit
e7e50520df
@ -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}";
|
||||
}
|
||||
|
||||
|
||||
@ -8,6 +8,6 @@
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"GoogleAnalyticsCode": "",
|
||||
"APIRoot": "http://localhost:3439",
|
||||
"GlobalAPIRoot": "http://localhost:3439"
|
||||
"APIRoot": "https://ganjgah.ir",
|
||||
"GlobalAPIRoot": "https://ganjgah.ir"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user