- @if (showLink)
- {
-
- }
- else
- {
-
- @Model.Username
-
- }
-
- @Model.Status
-
-
- @Model.Hearts
- @Model.Comments
- @Model.UsedSlots / @ServerSettings.Instance.EntitledSlots
- @Model.PhotosByMe
-
+
+
+
+
+ @if (showLink)
+ {
+
+ }
+ 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
+ },
+ })