@model BCards.Web.Models.IPageDisplay @{ var seo = ViewBag.SeoSettings as BCards.Web.Models.SeoSettings; var category = ViewBag.Category as BCards.Web.Models.Category; var isPreview = ViewBag.IsPreview as bool? ?? false; var isLivePage = ViewBag.IsLivePage as bool? ?? false; ViewData["Title"] = seo?.Title ?? $"{Model.DisplayName} - {category?.Name}"; Layout = isPreview ? "_Layout" : "_UserPageLayout"; } @section Head { @if (isPreview) { } else if (isLivePage) { @if (!string.IsNullOrEmpty(ViewBag.PageUrl as string)) { } } else { } } @section Styles { }
@if (!string.IsNullOrEmpty(Model.ProfileImageId)) { @Model.DisplayName } else {
}

@Model.DisplayName

@if (!string.IsNullOrEmpty(Model.Bio)) {

@Model.Bio

}
@if (isPreview) {
MODO PREVIEW - Esta é uma prévia da sua página
} @section Scripts { }