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-26 17:53:00 +02:00
|
|
|
<a href="http://127.0.0.1:8000/product?id={{ .Id }}">
|
|
|
|
<div class="productTile">
|
|
|
|
<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}}
|