{% load i18n humanize %} {% comment %} — the projects or the datasets a contributor is behind: active ones first, then the most recently updated. Attributes: title – the card's title records – {shown: [{record, owned}], more: int, total: int} kind – "project" or "dataset", which picks the icon and what each row says variant – the theme colour of the record type all_url – where the full list lives, shown as "View all" and on the count empty – what to say when there are none class – extra classes on the card {% endcomment %} {% if records.total %}{{ records.total }}{% endif %} {% if records.total and all_url %} {% endif %} {% if records.shown %}
    {% for entry in records.shown %}
  • {{ entry.record.name }} {% if kind == "project" %} {{ entry.record.get_status_display }} {% endif %} {% if entry.owned %}{% translate "Owner" %}{% endif %} {% blocktranslate with when=entry.record.modified|naturalday:"SHORT_DATE_FORMAT" %}Updated {{ when }}{% endblocktranslate %}
  • {% endfor %}
{% if records.more %}
{% blocktranslate with counter=records.more %}and {{ counter }} more{% endblocktranslate %}
{% endif %} {% else %} {{ empty }} {% endif %}