mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 11:21:47 -05:00
implement privacy
This commit is contained in:
parent
812c0d7f16
commit
47cd75ca1f
1 changed files with 20 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue