summaryrefslogtreecommitdiff
path: root/Project-Unite/Views
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-23 21:50:48 -0400
committerMichael <[email protected]>2017-03-23 21:50:48 -0400
commit0b2469ee1c836c0022f1d10d24dbd0055011c43a (patch)
tree1fcfe2eaa8b87e18436da602f1faeb6487467062 /Project-Unite/Views
parent8d7350c24ac95eb325ce9c653c4cb7c99fbcdcae (diff)
downloadproject-unite-0b2469ee1c836c0022f1d10d24dbd0055011c43a.tar.gz
project-unite-0b2469ee1c836c0022f1d10d24dbd0055011c43a.tar.bz2
project-unite-0b2469ee1c836c0022f1d10d24dbd0055011c43a.zip
Front-end for following/un-following
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>