From 0ce12f45b0fa627c15e005728fcaf18bb441f398 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Fri, 20 Apr 2018 19:21:56 +0100 Subject: [PATCH] Use new logo scheme on Company.ByLetter. --- cicm_web/Views/Company/ByLetter.cshtml | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/cicm_web/Views/Company/ByLetter.cshtml b/cicm_web/Views/Company/ByLetter.cshtml index d25e24d7..4f88035a 100644 --- a/cicm_web/Views/Company/ByLetter.cshtml +++ b/cicm_web/Views/Company/ByLetter.cshtml @@ -48,24 +48,6 @@ @Model.Count() companies found in the database.
@foreach(Company company in Model) { - if(File.Exists(System.IO.Path.Combine(ViewBag.WebRootPath, "assets/logos", company.Id + ".gif"))) - { - - } - - if(File.Exists(System.IO.Path.Combine(ViewBag.WebRootPath, "assets/logos", company.Id + ".jpg"))) - { - - } - - if(File.Exists(System.IO.Path.Combine(ViewBag.WebRootPath, "assets/logos", company.Id + ".png"))) - { - - } - @@ -83,9 +65,10 @@ /assets/logos/thumbs/png/1x/@(company.LastLogo.Guid).webp 3x" src="/assets/logos/thumbs/png/1x@(company.LastLogo.Guid).png") alt="" - height="auto" width="auto" style="max-height: 32px; max-width: 128px "/> + height="auto" + width="auto" + style="max-height: 32px; max-width: 128px" /> - } @company.Name