@using Kreta.Web.Areas.Nyomtatvanyok.Models @using Kreta.Web.Helpers @using LinkExtensions = Kreta.Web.Helpers.LinkExtensions @foreach (var item in ViewData.Model.Data) { if (item is TermekportalModel) { } else if (item is TermekLeirasModel) { var termekLeirasModel = (TermekLeirasModel) item; } }
@{ var termekportalModel = (TermekportalModel) item; string docType = termekportalModel.DocumentType; switch (docType) { case "pdf": @Html.KretaIcon("fa-file-pdf-o", new Dictionary {{"style", "font-size: 22px; color: #DD0B0B;"}}) break; case "link": @Html.KretaIcon("fa-link", new Dictionary {{"style", "font-size: 22px; color: #295497;"}}) break; case "xls": @Html.KretaIcon("fa-file-excel-o", new Dictionary { { "style", "font-size: 22px; color: #049F13;" } }) break; } }
@termekportalModel.Name
@{ if (!string.IsNullOrWhiteSpace(termekportalModel.ActionLink)) { @LinkExtensions.KretaActionLink(Html, termekportalModel.Name, termekportalModel.ActionLink, "btn btn-default", "") } else { @LinkExtensions.KretaActionLink(Html, termekportalModel.Name, termekportalModel.ActionLink, "btn btn-default disabledItem", "") } }
@termekLeirasModel.Title

@(Html.Raw(termekLeirasModel.Description))