diff --git a/ProjectLighthouse/Pages/Partials/UserCardPartial.cshtml b/ProjectLighthouse/Pages/Partials/UserCardPartial.cshtml index ec1c2b06..49c1779c 100644 --- a/ProjectLighthouse/Pages/Partials/UserCardPartial.cshtml +++ b/ProjectLighthouse/Pages/Partials/UserCardPartial.cshtml @@ -5,32 +5,30 @@ bool showLink = (bool?)ViewData["ShowLink"] ?? false; } -
-
-
-
-
- @if (showLink) - { -

- @Model.Username -

- } - else - { -

- @Model.Username -

- } -

- @Model.Status -

-
- @Model.Hearts - @Model.Comments - @Model.UsedSlots / @ServerSettings.Instance.EntitledSlots - @Model.PhotosByMe -
+
+
+
+
+ @if (showLink) + { +

+ @Model.Username +

+ } + else + { +

+ @Model.Username +

+ } +

+ @Model.Status +

+
+ @Model.Hearts + @Model.Comments + @Model.UsedSlots / @ServerSettings.Instance.EntitledSlots + @Model.PhotosByMe
\ No newline at end of file diff --git a/ProjectLighthouse/Pages/UserPage.cshtml b/ProjectLighthouse/Pages/UserPage.cshtml index 87f6ecc0..31669ecb 100644 --- a/ProjectLighthouse/Pages/UserPage.cshtml +++ b/ProjectLighthouse/Pages/UserPage.cshtml @@ -3,7 +3,6 @@ @using System.Web @using LBPUnion.ProjectLighthouse.Types @using LBPUnion.ProjectLighthouse.Types.Profiles -@using LBPUnion.ProjectLighthouse.Types.Settings @model LBPUnion.ProjectLighthouse.Pages.UserPage @{ @@ -38,22 +37,13 @@ }
-
-
-
-
-

@Model.Title

-

- @Model.ProfileUser!.Status -

- -
- @Model.ProfileUser.Hearts - @Model.ProfileUser.Comments - @Model.ProfileUser.UsedSlots / @ServerSettings.Instance.EntitledSlots - @Model.ProfileUser.PhotosByMe -
-
+
+ @await Html.PartialAsync("Partials/UserCardPartial", Model.ProfileUser, new ViewDataDictionary(ViewData) + { + { + "ShowLink", false + }, + })