{% load i18n static text_extras %}
{% for snap in gadget_snap_list %} {% if gadget_snap_list|index:snap|divisibleby:1 %}
{% else %}
{% endif %} {% if snap.icon_url %}
{% else %} {% with 0|randint:10|string as rand %} {% with "img/boards/noboard-"|add:rand|add:".png" as noboard %}
{% endwith %} {% endwith %} {% endif %}

{% with snap_name=snap.title|default_if_none:snap.name %} {{ snap_name|style_snap_name }} {% endwith %}

{% if snap.description|length > 180 %}

{{ snap.description|truncatechars:180 }}

{% else %}

{% autoescape off %}{{ snap.description|html_links }}{% endautoescape %}

{% endif %}
{% endfor %}