summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-24 16:03:23 -0400
committerMichael <[email protected]>2017-03-24 16:03:23 -0400
commitf5093b6ee398891fc7bfc6f480b205a30ca97647 (patch)
tree0d4b5a7c0e6d255c57c27eae79ce02ae2a944da3
parentcd73cc80d1c097e584938ffe993bd546bab9d31a (diff)
downloadproject-unite-f5093b6ee398891fc7bfc6f480b205a30ca97647.tar.gz
project-unite-f5093b6ee398891fc7bfc6f480b205a30ca97647.tar.bz2
project-unite-f5093b6ee398891fc7bfc6f480b205a30ca97647.zip
Show followed and followers on profile
-rw-r--r--Project-Unite/Views/Profiles/ViewProfile.cshtml24
1 files changed, 24 insertions, 0 deletions
diff --git a/Project-Unite/Views/Profiles/ViewProfile.cshtml b/Project-Unite/Views/Profiles/ViewProfile.cshtml
index 171d37f..a5a5196 100644
--- a/Project-Unite/Views/Profiles/ViewProfile.cshtml
+++ b/Project-Unite/Views/Profiles/ViewProfile.cshtml
@@ -68,4 +68,28 @@
</div>
}
</div>
+ <div class="col-xs-3">
+ <div class="panel">
+ <div class="panel-body">
+ <h4>Followers</h4>
+ <ul>
+ @foreach(var f in Model.Followers)
+ {
+ <li>@Html.UserLink(f.Follower)</li>
+ }
+ </ul>
+ </div>
+ </div>
+ <div class="panel">
+ <div class="panel-body">
+ <h4>Following</h4>
+ <ul>
+ @foreach (var f in Model.Followed)
+ {
+ <li>@Html.UserLink(f.Followed)</li>
+ }
+ </ul>
+ </div>
+ </div>
+ </div>
</div> \ No newline at end of file