From 7d69d9c6b48e532a629c6c299ab2814f90ba19d0 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 17 May 2017 19:02:41 -0400 Subject: [PATCH] show more user info on profile --- .../Views/Profiles/ViewProfile.cshtml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) 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 @@
+ +

About @Model.DisplayName

+ + @if (!string.IsNullOrWhiteSpace(Model.Bio)) + { +

Bio

+

@Html.Markdown(Model.Bio)

+ } + +
+
+

Interests

+ @if (string.IsNullOrWhiteSpace(Model.Interests)) + { +

Nothing to show here.

+ } + else + { +

@Html.Markdown(Model.Interests)

+ } +
+

Hobbies

+ @if (string.IsNullOrWhiteSpace(Model.Hobbies)) + { +

Nothing to show here.

+ } + else + { +

@Html.Markdown(Model.Hobbies)

+ } +
+
+ + + +

Posts

+ @if(Model.UserName == User.Identity.Name) { Html.RenderPartial("~/Views/Profiles/_NewPost.cshtml", new Project_Unite.Models.UserPost());