@using DR.FV2016.Web.Models.Candidate.Configs @using DR.WCMS.Web.UIBindings.Extensions @using DR.Web.UI.Model @using DR.Web.UI.Helpers @using DR.FV2016.Web.Helpers; @model DR.FV2016.Web.Models.Candidate.CandidateArticleList @{ var candidateItems = Model.Items.ToList().Select( a => Html.ToCombine(a, "CandidateItem", 1, new CandidateItemViewConf { ImageRatio = "1-1", ImageSpan = 12, PartyLetterSize = PartyLetterSize.Medium, Classname = "profile-high", ShowHeading = false, HeadingSize = 0, ShowSubheadline = false })); } @if (Model.Items.Any()) { var candidateListSection = Html.Section( new SectionViewConf { ClassName = "candidate-list", // TO PLACE PARTY LETTER ICONS Boxed = false, ShowHeading = false, Footer = new List { new MvcHtmlString("Hvem skal du stemme på?Find din kandidat") }, ShowMoreLink = new Link { LinkText = "Prøv kandidat-testen", AltText = "Prøv kandidat-testen", Url = "/nyheder/politik/valg2016/kandidat-testen" } }, Html.CombineLayout(CombineLayoutStyle.Ol, new CombineLayoutSection() { Items = candidateItems, SpanWidth = 16 }) ); @Html.Section(new SectionViewConf { ClassName = "section candidate-list-spot live", Boxed = true, ShowHeading = false }, Html.Row( Html.Column("span-9 span-lg-7 visible-lg visible-md", candidateListSection), Html.Column("span-9 span-lg-7 visible-sm mobile", candidateListSection), Html.Column("span-3 span-lg-2 visible-md visible-lg", Html.Partial("~/Views/Shared/Banners/Countdown.cshtml") ) ) ) }