mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Use new logo scheme on Company.ByLetter.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user