oswilno/assets/templates/marketplace/index.html
2022-07-21 06:35:15 +02:00

24 lines
803 B
HTML

{% extends "../base.html" %}
{% block content %}
<marketplace-offers>
<h1>Rzeczy wystawione na sprzedaż</h1>
{% for offer in offers %}
<marketplace-offer
offer-id="{{offer.id}}"
description="{{offer.description}}"
picture-url="{{offer.picture_url}}"
{% match offer.price_range %}
{% when PriceRange::Free %}
price-range="free"
{% when PriceRange::Fixed with { value } %}
price-range="{{value}}"
{% when PriceRange::Range with { min, max } %}
price-range-min="{{min}}"
price-range-max="{{max}}"
{% endmatch %}
></marketplace-offer>
{% endfor %}
</marketplace-offers>
{% endblock %}