diff --git a/Project-Unite/Views/Profiles/ViewProfile.cshtml b/Project-Unite/Views/Profiles/ViewProfile.cshtml
index 88c2e81..9ba337d 100644
--- a/Project-Unite/Views/Profiles/ViewProfile.cshtml
+++ b/Project-Unite/Views/Profiles/ViewProfile.cshtml
@@ -13,7 +13,17 @@
}
@Model.DisplayName
-
+
+ @if (Request.IsAuthenticated)
+ {
+ if (Model.ShowEmail)
+ {
+ if (Model.EmailConfirmed == true)
+ {
+ - Email @Model.Email
+ }
+ }
+ }
@if (Model.UserName != User.Identity.Name)
{
if (ACL.IsFollowed(User.Identity.Name, Model.Id))
@@ -32,12 +42,18 @@
User stats
- @Model.Codepoints Codepoints
- - Joined at: @Model.JoinedAt
+ @if (Model.ShowJoinDate)
+ {
+ - Joined at: @Model.JoinedAt
+ }
+ @if (Model.ShowPostAndTopicCounts)
+ {
- Posts: @Model.PostCount
- Topics: @Model.TopicCount
+ }
- @if (Model.Followers.Count() > 0)
+ @if (Model.Followers.Count() > 0 && Model.ShowFollowers)
{
Followers
}
- @if (Model.Followed.Count() > 0)
+ @if (Model.Followed.Count() > 0 && Model.ShowFollowed)
{
Following