summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-17 20:12:02 -0400
committerMichael <[email protected]>2017-05-17 20:12:02 -0400
commit47cd75ca1f74cc1f519089651ac3401cfa269758 (patch)
tree64c3d0381642f615c7aa8cf1397409c5d8be3963
parent812c0d7f1615822d52c489ec48a21e63518ec88b (diff)
downloadproject-unite-47cd75ca1f74cc1f519089651ac3401cfa269758.tar.gz
project-unite-47cd75ca1f74cc1f519089651ac3401cfa269758.tar.bz2
project-unite-47cd75ca1f74cc1f519089651ac3401cfa269758.zip
implement privacy
-rw-r--r--Project-Unite/Views/Profiles/ViewProfile.cshtml24
1 files changed, 20 insertions, 4 deletions
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 @@
}
<h5>@Model.DisplayName</h5>
-<ul class="nav nav-pills">
+<ul class="nav nav-pills nav-stacked">
+ @if (Request.IsAuthenticated)
+ {
+ if (Model.ShowEmail)
+ {
+ if (Model.EmailConfirmed == true)
+ {
+ <li><a href="mailto:@Model.Email">Email @Model.Email</a></li>
+ }
+ }
+ }
@if (Model.UserName != User.Identity.Name)
{
if (ACL.IsFollowed(User.Identity.Name, Model.Id))
@@ -32,12 +42,18 @@
<strong>User stats</strong><br/>
<ul>
<li><strong>@Model.Codepoints</strong> Codepoints</li>
- <li><strong>Joined at: </strong>@Model.JoinedAt</li>
+ @if (Model.ShowJoinDate)
+ {
+ <li><strong>Joined at: </strong>@Model.JoinedAt</li>
+ }
+ @if (Model.ShowPostAndTopicCounts)
+ {
<li><strong>Posts: </strong>@Model.PostCount</li>
<li><strong>Topics: </strong>@Model.TopicCount</li>
+ }
</ul>
- @if (Model.Followers.Count() > 0)
+ @if (Model.Followers.Count() > 0 && Model.ShowFollowers)
{
<h4>Followers</h4>
<ul>
@@ -48,7 +64,7 @@
</ul>
}
- @if (Model.Followed.Count() > 0)
+ @if (Model.Followed.Count() > 0 && Model.ShowFollowed)
{
<h4>Following</h4>
<ul>