diff --git a/Teknik/Areas/User/Views/User/ViewProfile.cshtml b/Teknik/Areas/User/Views/User/ViewProfile.cshtml index 988c3be..962ce85 100644 --- a/Teknik/Areas/User/Views/User/ViewProfile.cshtml +++ b/Teknik/Areas/User/Views/User/ViewProfile.cshtml @@ -88,14 +88,14 @@ {
  • Public Key @pgpFingerprint64.AddStringAtInterval(4, " ")
  • } - @if (!string.IsNullOrEmpty(Model.Email)) + @if (!string.IsNullOrEmpty(Model.Email) && Model.Config.EmailConfig.Enabled) { -
  • Email @Model.Email
  • +
  • Email @(Html.Raw(User.Identity.IsAuthenticated ? $"{Model.Email}" : $"{Model.Username} at {Model.Config.EmailConfig.Domain}"))
  • }
  • Blog @(string.IsNullOrEmpty(Model.BlogSettings.Title) ? string.Format("{0}'s Blog", Model.Username) : Model.BlogSettings.Title)
  • @if (!string.IsNullOrEmpty(gitFullUrl)) { -
  • Git Public Repos
  • +
  • Git Public Repos
  • } @if (!string.IsNullOrEmpty(Model.UserSettings.Website))