@model DR.FV2016.Web.Models.Candidate.FactViewModel @{ var showOccupation = !string.IsNullOrWhiteSpace(Model.Occupation); var showAge = Model.DateOfBirth != DR.FV2016.Web.Helpers.ProfileHelper.CandidateBirthDateMinValue; //var showAge = !string.IsNullOrWhiteSpace(Model.DateOfBirth.ToString()); var showHomepage = !string.IsNullOrWhiteSpace(Model.Homepage); var showBlog = !string.IsNullOrWhiteSpace(Model.Blog); var showVideo = !string.IsNullOrWhiteSpace(Model.Video); var showContentText = !string.IsNullOrWhiteSpace(Model.ContentText); var showCivilStatus = !string.IsNullOrWhiteSpace(Model.CivilStatus); var showEducation = !string.IsNullOrWhiteSpace(Model.Education); }
@Html.Raw(Model.ContentText.Replace("\r\n\r\n", "\r\n").Replace("\r\n", "
"))
WEB: @Uri.UnescapeDataString(Model.Homepage.Replace("http://", ""))
} @if (showBlog) {BLOG: @Uri.UnescapeDataString(Model.Blog.Replace("http://", ""))
} @if (showVideo) {VIDEO: @Uri.UnescapeDataString(Model.Video.Replace("http://", ""))
}