@using System.Web.UI.WebControls.WebParts @using DR.FV2016.Web.Models @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.TopBannerViewModel @{ var candidateItems = Model.PartyLeadersList.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.PartyLeadersList.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", Boxed = true, ShowHeading = false }, Html.Row( Html.Column("span-9 span-lg-7 span-sm-12 visible-lg visible-md span-sm-12", candidateListSection), Html.Partial("~/Views/Shared/Banners/VideoItem.cshtml",ViewData), Html.Partial("~/Views/Shared/Banners/TeaserRight.cshtml") ) ) }