Skip to content

Instantly share code, notes, and snippets.

@bobthecow
Created June 22, 2010 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobthecow/448866 to your computer and use it in GitHub Desktop.
Save bobthecow/448866 to your computer and use it in GitHub Desktop.
<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