From 73373c6a0089589ca7137ea8c81fe1562037a1e5 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 17 May 2017 18:47:30 -0400 Subject: [PATCH] two-column profile page --- .../Views/Profiles/ViewProfile.cshtml | 75 +++++++++---------- 1 file changed, 34 insertions(+), 41 deletions(-) diff --git a/Project-Unite/Views/Profiles/ViewProfile.cshtml b/Project-Unite/Views/Profiles/ViewProfile.cshtml index a5a5196..13147a7 100644 --- a/Project-Unite/Views/Profiles/ViewProfile.cshtml +++ b/Project-Unite/Views/Profiles/ViewProfile.cshtml @@ -5,14 +5,13 @@ }
-

- @if (string.IsNullOrWhiteSpace(Model.FullName)) - { @Model.DisplayName } - else +
+ + @if (!string.IsNullOrWhiteSpace(Model.FullName)) { - @Model.FullName (@Model.DisplayName)} -

-
+

@Model.FullName

+ } +
@Model.DisplayName
-
-
-

User stats

-
    -
  • @Model.Codepoints Codepoints
  • -
  • Joined at: @Model.JoinedAt
  • -
  • Posts: @Model.PostCount
  • -
  • Topics: @Model.TopicCount
  • -
+
+ + User stats
+
    +
  • @Model.Codepoints Codepoints
  • +
  • Joined at: @Model.JoinedAt
  • +
  • Posts: @Model.PostCount
  • +
  • Topics: @Model.TopicCount
  • +
+ +

Followers

+
    + @foreach (var f in Model.Followers) + { +
  • @Html.UserLink(f.Follower)
  • + } +
+ +

Following

+
    + @foreach (var f in Model.Followed) + { +
  • @Html.UserLink(f.Followed)
  • + } +
+ +
-
+
@if(Model.UserName == User.Identity.Name) { Html.RenderPartial("~/Views/Profiles/_NewPost.cshtml", new Project_Unite.Models.UserPost()); @@ -68,28 +85,4 @@
}
-
-
-
-

Followers

-
    - @foreach(var f in Model.Followers) - { -
  • @Html.UserLink(f.Follower)
  • - } -
-
-
-
-
-

Following

-
    - @foreach (var f in Model.Followed) - { -
  • @Html.UserLink(f.Followed)
  • - } -
-
-
-
\ No newline at end of file