a better link for user web site

This commit is contained in:
Hamid Reza Mohammadi 2021-06-03 21:47:55 +04:30
parent b57f938ee7
commit 5a64da84ba

View File

@ -44,14 +44,14 @@ namespace GanjooRazor.Pages
htmlText += $"<div id=\"profile\">{Environment.NewLine}";
htmlText += $"<p>{profile.NickName}{Environment.NewLine}";
if (!string.IsNullOrEmpty(profile.Website))
{
htmlText += $"<p><a href=\"{profile.Website}\">{profile.NickName}</a></p>{Environment.NewLine}";
}
else
{
htmlText += $"<p>{profile.NickName}</p>{Environment.NewLine}";
htmlText += $"<a href=\"{profile.Website}\">🌐</a></p>{Environment.NewLine}";
}
htmlText += $"</p>{Environment.NewLine}";
if (!string.IsNullOrEmpty(profile.Bio))
{