added in stock background

This commit is contained in:
Hazel Noack
2025-07-10 14:46:36 +02:00
parent 3c04714fec
commit f4bd2a69e4
2 changed files with 10 additions and 1 deletions

View File

@@ -25,7 +25,7 @@
<div class="cards" id="listings">
{{range $Listing := .Listings }}
<a target="_blank" href="{{ $Listing.Url }}" class="card">
<a target="_blank" href="{{ $Listing.Url }}" class="card {{ if $Listing.InStock }}in-stock{{ end }}">
<h3>{{ $Listing.ProductName }}</h3>
<p>{{ $Listing.StoreName }} - {{ $Listing.Price }}</p>
</a>