{% from "addons/listing/macros.html" import heading, item_info %} {% set collection = collection or None %} {% set username = request.amo_user.username if request.user.is_authenticated() else '' %} {% cache addons, extra=[collection, username] %} {% for addon in addons %}
{{ heading(addon, amo, collection=collection) }}
{{ install_button(addon, collection=collection) }} {{ item_info(addon, amo, show_date, show_downloads) }} {% if request.user.is_authenticated() %}
{{ favorites_widget(addon, condensed=True) }} {{ collection_add_widget(addon, condensed=True) }} {{ sharing_widget(addon, condensed=True) }}
{% endif %}
{% if addon.is_persona() %} {{ persona_preview(addon.persona, linked=False) }} {% else %}
{{ addon.summary|truncate(250)|nl2br }}
{% endif %}
{% if settings.PERF_THRESHOLD and addon.ts_slowness >= settings.PERF_THRESHOLD %} {{ performance_note(amount=addon.ts_slowness, listing=True) }} {% endif %} {% if notes and notes[addon.id] %}
{{ _("Collector's Note") }} {{ notes[addon.id] }}
{% endif %}
{% endfor %} {% endcache %}