{% import 'macros/stickers.html' as stick %} {% import '_types/product/prices.html' as prices %} {% set prices_ns = namespace() %} {{ prices.set_prices(p, prices_ns) }} {% set item_href = url_for('market.browse.product.product_detail', slug=p.slug)|host %}
{# ❤️ like button overlay - OUTSIDE the link #} {% if g.user %}
{% set slug = p.slug %} {% set liked = p.is_liked or False %} {% include "_types/browse/like/button.html" %}
{% endif %} {# Make this relative so we can absolutely position children #}
{% if p.image %}
no image {% for l in p.labels %} {% endfor %}
{{ p.brand }}
{% else %}
No image
    {% for l in p.labels %}
  • {{ l }}
  • {% endfor %}
{{ p.brand }}
{% endif %}
{#
{{ prices.rrp(prices_ns) }}
#} {{ prices.card_price(p)}} {% import '_types/product/_cart.html' as _cart %}
{{ _cart.add(p.slug, cart)}}
{% for s in p.stickers %} {{ stick.sticker( asset_url('stickers/' + s + '.svg'), s, True, size=24, found=s in selected_stickers ) }} {% endfor %}
{{ p.title | highlight(search) }}