@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); }

Fakta @Model.Name

@* Disabled because they are not in db - EWAR @if (showContentText) {
CV:

@Html.Raw(Model.ContentText.Replace("\r\n\r\n", "\r\n").Replace("\r\n", "

"))

} else { ViewBag.IsMissingContent = true;
@Model.Name har endnu ikke opgivet CV
} Disabled because these are more prof candidates and things are filled out - EWAR @if (ViewBag.IsMissingContent != null && (bool)ViewBag.IsMissingContent) {
Kandidater kan kontakte Altinget.dk og angive de manglende oplysninger
}*@ @if (showHomepage && Model.Homepage.ToLowerInvariant() != "http://ingen") {

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://", ""))

}