2018-10-26 10:40:11 +02:00
|
|
|
{{define "content"}}
|
2018-10-26 17:53:00 +02:00
|
|
|
<h1>{{.category.Name}}</h1>
|
2018-10-26 10:40:11 +02:00
|
|
|
{{range $.products}}
|
2018-10-27 17:30:25 +02:00
|
|
|
<a href="/product?id={{ .Id }}">
|
2018-10-26 17:53:00 +02:00
|
|
|
<div class="productTile">
|
2018-10-27 12:56:16 +02:00
|
|
|
{{if le .Quantity 0}}
|
|
|
|
<div class="productUnavailable" style="width: 350px; position:absolute;">Produkt niedostępny</div>
|
|
|
|
{{end}}
|
2018-10-26 17:53:00 +02:00
|
|
|
<div class="categoryTileContent">
|
|
|
|
<div class="productIcon" style="background-image: url({{ .ImgUrl }});"></div>
|
|
|
|
<div class="categoryName">{{ .Name }}</div>
|
|
|
|
<div class="productPrice">{{ .Price }} zł</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
2018-10-26 10:40:11 +02:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|