{% for c in collections %} {% set is_watching = request.user.is_authenticated() and c.id in request.user.watching %}

{{ c.name }} {% if c.author %} {{ _('by {0}')|fe(c.author|user_link|safe) }} {% endif %}

{{ c.description|truncate(250)|nl2br }}

{% if field == 'popular' %} {# L10n: People "follow" collections to get notified of updates. Like Twitter followers. #} {% trans cnt=c.weekly_subscribers, num=c.weekly_subscribers|numberfmt %} {{ num }} weekly follower {% pluralize %} {{ num }} weekly followers {% endtrans %} {% else %} {# L10n: People "follow" collections to get notified of updates. Like Twitter followers. #} {% trans cnt=c.subscribers, num=c.subscribers|numberfmt %} {{ num }} follower {% pluralize %} {{ num }} followers {% endtrans %} {% endif %}
{% if field in ('created', 'updated') %}
{% if field == 'created' %} {# L10n: {0} is a date. #} {{ _('Added {0}')|f(c.created|datetime) }} {% elif field == 'updated' %} {# L10n: {0} is a date. #} {{ _('Updated {0}')|f(c.modified|datetime) }} {% endif %}
{% endif %}
{% if request.user.is_authenticated() %} {% if is_watching %} {{ _('Following') }} {% endif %} {{ _('Stop Following') if is_watching else _('Follow this Collection') }} {% endif %}
{% endfor %}