Use new logo scheme on Company.ByLetter.

This commit is contained in:
2018-04-20 19:21:56 +01:00
parent 27f30cc305
commit 0ce12f45b0

View File

@@ -48,24 +48,6 @@
@Model.Count() companies found in the database.<br />
@foreach(Company company in Model)
{
if(File.Exists(System.IO.Path.Combine(ViewBag.WebRootPath, "assets/logos", company.Id + ".gif")))
{
<img src="@(System.IO.Path.Combine("/assets/logos", company.Id + ".gif"))"
alt="">
}
if(File.Exists(System.IO.Path.Combine(ViewBag.WebRootPath, "assets/logos", company.Id + ".jpg")))
{
<img src="@(System.IO.Path.Combine("/assets/logos", company.Id + ".jpg"))"
alt="">
}
if(File.Exists(System.IO.Path.Combine(ViewBag.WebRootPath, "assets/logos", company.Id + ".png")))
{
<img src="@(System.IO.Path.Combine("/assets/logos", company.Id + ".png"))"
alt="">
}
<a asp-controller="Company"
asp-action="View"
asp-route-id="@company.Id">
@@ -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" />
</picture>
}
@company.Name
</a>