diff options
| author | Michael <[email protected]> | 2017-04-07 11:09:19 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-07 11:09:19 -0400 |
| commit | b773d7e6b80cd4bae066e54320686cac338c0fb1 (patch) | |
| tree | 7b49e8a53e8f7fb024c1847442af339b2b56a6f6 | |
| parent | 0fb9f61ab352b4afaa3cdfb0e84ce983e2324e55 (diff) | |
| download | project-unite-b773d7e6b80cd4bae066e54320686cac338c0fb1.tar.gz project-unite-b773d7e6b80cd4bae066e54320686cac338c0fb1.tar.bz2 project-unite-b773d7e6b80cd4bae066e54320686cac338c0fb1.zip | |
Add user search results
| -rw-r--r-- | Project-Unite/Views/Home/Search.cshtml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Project-Unite/Views/Home/Search.cshtml b/Project-Unite/Views/Home/Search.cshtml index 6adf5af..2dca6c8 100644 --- a/Project-Unite/Views/Home/Search.cshtml +++ b/Project-Unite/Views/Home/Search.cshtml @@ -46,6 +46,35 @@ </table> </div> + <div class="tab-pane fade in active" id="t_users"> + <h4>Users</h4> + <table class="table"> + <tr> + <th style="width:65%">User</th> + <th>Stats</th> + </tr> + @foreach (var user in Model.Users.OrderByDescending(x => x.JoinedAt)) + { + <tr> + <td> + <p><img src="@user.AvatarUrl" width="128" height="128" /> @Html.UserLink(user.Id)</p> + </td> + <td> + <ul> + <li><strong>@user.Codepoints</strong> Codepoints</li> + <li><strong>@user.Followers.Length</strong> followers, <strong>@user.Followed.Length</strong> followed.</li> + <li><strong>@user.TopicCount</strong> topics</li> + <li><strong>@user.Posts.Length</strong> posts</li> + <li><strong>Joined at</strong> @user.JoinedAt</li> + </ul> + </td> + </tr> + } + </table> + </div> + + + <div class="tab-pane fade in active" id="t_downloads"> <h4>Downloads</h4> <table class="table"> |
