@page "/user/{userId:int}" @using System.Web @using LBPUnion.ProjectLighthouse.Extensions @using LBPUnion.ProjectLighthouse.Localization.StringLists @using LBPUnion.ProjectLighthouse.Servers.Website.Extensions @using LBPUnion.ProjectLighthouse.Types.Entities.Level @using LBPUnion.ProjectLighthouse.Types.Entities.Profile @using LBPUnion.ProjectLighthouse.Types.Moderation.Cases @model LBPUnion.ProjectLighthouse.Servers.Website.Pages.UserPage @{ Layout = "Layouts/BaseLayout"; Model.ShowTitleInPage = false; Model.Title = Model.Translate(ProfileStrings.Title, Model.ProfileUser!.Username); Model.Description = Model.ProfileUser!.Biography; bool isMobile = Request.IsMobile(); string language = Model.GetLanguage(); string timeZone = Model.GetTimeZone(); } @if (Model.ProfileUser.IsBanned) {
This user has been banned for violating the Terms of Service. Remember to follow the rules!
}@Model.Translate(ProfileStrings.NoBiography, Model.ProfileUser.Username)
} else {@HttpUtility.HtmlDecode(Model.ProfileUser.Biography)
}@Model.Translate(GeneralStrings.Soon)
The user's privacy settings prevent you from viewing this page.
Comments are disabled because the user is banned.
This user hasn't uploaded any photos
}The user's privacy settings prevent you from viewing this page.
This user hasn't published any levels
} @foreach (SlotEntity slot in Model.Slots ?? new List@Model.Translate(GeneralStrings.Soon)
You haven't hearted any levels
} else {You have hearted @(Model.HeartedSlots?.Count) levels
} @foreach (SlotEntity slot in Model.HeartedSlots ?? new ListYou haven't queued any levels
} else {There are @(Model.QueuedSlots?.Count) levels in your queue
} @foreach (SlotEntity slot in Model.QueuedSlots ?? new List