diff options
| author | Michael <[email protected]> | 2017-05-17 19:02:41 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-17 19:02:41 -0400 |
| commit | 7d69d9c6b48e532a629c6c299ab2814f90ba19d0 (patch) | |
| tree | c4d0d689150fd5ffd539d90041b7aa8cc56d4823 | |
| parent | 179e3dac1e99b305be769481c3f19491604a126d (diff) | |
| download | project-unite-7d69d9c6b48e532a629c6c299ab2814f90ba19d0.tar.gz project-unite-7d69d9c6b48e532a629c6c299ab2814f90ba19d0.tar.bz2 project-unite-7d69d9c6b48e532a629c6c299ab2814f90ba19d0.zip | |
show more user info on profile
| -rw-r--r-- | Project-Unite/Views/Profiles/ViewProfile.cshtml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Project-Unite/Views/Profiles/ViewProfile.cshtml b/Project-Unite/Views/Profiles/ViewProfile.cshtml index 32b8e0a..88c2e81 100644 --- a/Project-Unite/Views/Profiles/ViewProfile.cshtml +++ b/Project-Unite/Views/Profiles/ViewProfile.cshtml @@ -61,6 +61,43 @@ </div> <div class="col-xs-9"> + + <h2>About @Model.DisplayName</h2> + + @if (!string.IsNullOrWhiteSpace(Model.Bio)) + { + <h3>Bio</h3> + <p>@Html.Markdown(Model.Bio)</p> + } + + <div class="row"> + <div class="col-xs-6"> + <h3>Interests</h3> + @if (string.IsNullOrWhiteSpace(Model.Interests)) + { + <p>Nothing to show here.</p> + } + else + { + <p>@Html.Markdown(Model.Interests)</p> + } + </div><div class="col-xs-6"> + <h3>Hobbies</h3> + @if (string.IsNullOrWhiteSpace(Model.Hobbies)) + { + <p>Nothing to show here.</p> + } + else + { + <p>@Html.Markdown(Model.Hobbies)</p> + } + </div> + </div> + + + + <h2>Posts</h2> + @if(Model.UserName == User.Identity.Name) { Html.RenderPartial("~/Views/Profiles/_NewPost.cshtml", new Project_Unite.Models.UserPost()); |
