summaryrefslogtreecommitdiff
path: root/Project-Unite/Views
diff options
context:
space:
mode:
Diffstat (limited to 'Project-Unite/Views')
-rw-r--r--Project-Unite/Views/Profiles/ViewProfile.cshtml14
1 files changed, 14 insertions, 0 deletions
diff --git a/Project-Unite/Views/Profiles/ViewProfile.cshtml b/Project-Unite/Views/Profiles/ViewProfile.cshtml
index bee2ed9..b5ed038 100644
--- a/Project-Unite/Views/Profiles/ViewProfile.cshtml
+++ b/Project-Unite/Views/Profiles/ViewProfile.cshtml
@@ -14,6 +14,20 @@
</h3>
</div>
+<ul class="nav nav-pills">
+ @if (Model.UserName != User.Identity.Name)
+ {
+ if (ACL.IsFollowed(User.Identity.Name, Model.Id))
+ {
+ <li><a href="@Url.Action("UnfollowUser", "Profiles", new { id = Model.Id })"><span class="glyphicon glyphicon-eye-close"></span> Unfollow</a></li>
+ }
+ else
+ {
+ <li><a href="@Url.Action("FollowUser", "Profiles", new { id = Model.Id })"><span class="glyphicon glyphicon-eye-open"></span> Follow</a></li>
+ }
+ }
+</ul>
+
<div class="row">
<div class="col-xs-4">
<h4>User stats</h4>