Skip to content

Instantly share code, notes, and snippets.

@bobthecow bobthecow/one.twig
Created Jun 22, 2010

Embed
What would you like to do?
<a href="{% route 'product_sellable' with ["sellerName": activity.sellable.seller.identity.username , "productSlug": activity.sellable.product.slug] %}">
<img src="{{ activity.sellable.product.images[0].thumbUrl }}">
</a>
{% if activity.sellable %}
{% if activity.sellable.seller %}
{% if activity.sellable.seller.identity %}
{% if activity.sellable.seller.identity.username %}
{% if activity.sellable %}
{% if activity.sellable.product %}
{% if activity.sellable.product.slug %}
<a href="{% route 'product_sellable' with ["sellerName": activity.sellable.seller.identity.username , "productSlug": activity.sellable.product.slug] %}">
{% if activity.sellable %}
{% if activity.sellable.product %}
{% if count(activity.sellable.product.images) > 0 %}
{% if count(activity.sellable.product.images[0].thumbUrl %}
<img src="{{ activity.sellable.product.images[0].thumbUrl }}">
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.