@page @using NodaTime.Serialization.Protobuf @model AboutModel @{ Layout = "_LayoutContained"; } @if (Model.UserAccount != null) { @if (!string.IsNullOrEmpty(Model.UserBackgroundUrl)) { Background Image }
@if (!string.IsNullOrEmpty(Model.UserPictureUrl)) { Avatar } else {
@(Model.UserAccount.Name != null ? Model.UserAccount.Name[0] : '?')
}
@(Model.UserAccount.Nick ?? Model.UserAccount.Name)
@@@Model.UserAccount.Name

Info

@if (!string.IsNullOrEmpty(Model.UserAccount.Profile?.TimeZone)) {
Time Zone @Model.GetCurrentTimeInTimeZone(Model.UserAccount.Profile.TimeZone) · @Model.GetOffsetUtcString(Model.UserAccount.Profile.TimeZone) · @Model.UserAccount.Profile.TimeZone
} @if (!string.IsNullOrEmpty(Model.UserAccount.Profile?.Location)) {
Location @Model.UserAccount.Profile.Location
} @if (!string.IsNullOrEmpty(Model.UserAccount.Profile?.FirstName) || !string.IsNullOrEmpty(Model.UserAccount.Profile?.LastName)) {
Name @string.Join(" ", new[] { Model.UserAccount.Profile.FirstName, Model.UserAccount.Profile.MiddleName, Model.UserAccount.Profile.LastName }.Where(s => !string.IsNullOrEmpty(s)))
} @if (!string.IsNullOrEmpty(Model.UserAccount.Profile?.Gender)) {
Gender @Model.UserAccount.Profile.Gender @if (!string.IsNullOrEmpty(Model.UserAccount.Profile?.Pronouns)) { · @Model.UserAccount.Profile.Pronouns }
}
Joined at @Model.UserAccount.CreatedAt?.ToDateTimeOffset().ToString("MMMM d, yyyy")
@if (Model.UserAccount.Profile?.Birthday != null) {
Birthday @Model.CalculateAge(Model.UserAccount.Profile.Birthday.ToInstant()) yrs old · @Model.UserAccount.Profile.Birthday?.ToDateTimeOffset().ToString("MMMM d")
}
@if (Model.UserAccount.PerkSubscription != null) {
@Model.GetPerkInfo(Model.UserAccount.PerkSubscription.Identifier).Name Tier
Stellar Program Member
}
Level @Model.UserAccount.Profile?.Level
@Model.UserAccount.Profile?.Experience XP
@if (Model.UserAccount.Profile?.Links.Count > 0) {

Links

    @foreach (var link in Model.UserAccount.Profile.Links) {
  • @(link.Name)
    @(link.Url)
  • }
} @if (Model.UserAccount.Contacts.Count > 0) {

Links

    @foreach (var contact in Model.UserAccount.Contacts) {
  • @(contact.Content)
    @(contact.Type.ToString())
  • }
}
@if (!string.IsNullOrEmpty(Model.HtmlBio)) {

Bio

@Html.Raw(Model.HtmlBio)
}
} else {

User not found

The user profile you're trying to access is not found.

}