@using DR.FV2016.Web.Models @using DR.FV2016.Web.Models.Candidate.Configs @model DR.FV2016.Web.Models.Candidate.CandidateViewModel @section localstylesheet { @Html.Partial("localstylesheets") } @section documenthead { @*http://www.altinget.dk/images/kd/2750-Bess-Serner-Pedersen-a.jpg *@ @{ if (Model.ProfileViewModel.Items.FirstOrDefault() != null) { var candiateImage = Model.ProfileViewModel.Items.FirstOrDefault().CandidateImageUrl; if (!string.IsNullOrWhiteSpace(candiateImage)) { @**@ } } } @Html.Partial("localdocumenthead") @{ //var date = new DateTime(2013, 10, 1); } @**@ } @section documentbottom { @Html.Partial("localdocumentbottom") } @{ // TODO: Fix this ugly thing Model.QuestionsAndAnswersViewModel.Name = Model.Fullname; var candidateItem = Model.ProfileViewModel.Items.FirstOrDefault(); var candidateConf = new CandidateItemViewConf { HeadingSize = 4, Classname = "top-profile", ImageRatio = "1-1", ImageSpan = 2, PartyLetterSize = PartyLetterSize.Large, ShowPartyName = true, Id = candidateItem.CandidateId.ToString() /*,CallToActionLinks = new List { new DR.Web.UI.Model.Link { Url = Url.ActionRemapped("PoliticalRegion", "PoliticalRegion", new { politicalRegionSlug = Model.PoliticalRegionSlug, electionType = Model.ElectionType }) ,LinkText = "Se mere om " + candidateItem.PoliticalRegion } }*/ }; var profileSection = Model.ProfileViewModel.Items.TakeAs( a => Html.ToCandidateCombine(a, 12, candidateConf) ); }

@Html.PartialWithViewData("CandidateItem", Model.ProfileViewModel.Items.First(), candidateConf) @Html.Row( Html.Column( 8, Model.PersonalVotesAvailable ? Html.Partial("_PersonalVotes", Model.ProfileViewModel.Items.First()) : MvcHtmlString.Empty, Html.Partial("_MainPoints", Model.MainPointsViewModel), Html.Partial("_QuestionsAndAnswers", Model.QuestionsAndAnswersViewModel) ), Html.Column( 4, Html.Partial("profile-dr-site-share-horizontal"), Html.Partial("_Facts", Model.FactViewModel), Html.Partial("_SocialMediaSites", Model.SocialMediaSitesViewModel), Html.Partial("_PartyArticle", Model.PartyArticleViewModel) ) )
@*Html.Partial("../SharedModules/PoliticalRegionP4ZoneAsync")*@