{% load i18n cc_admin %}
{% if activity.day %}

{% blocktranslate with day=activity.day|date:'l, F j, Y' %}Activity on {{ day }}{% endblocktranslate %}

{% icon "x" %}{% translate 'Show all' %}
{% for group in activity.feed %}
{% if group.user %} {{ group.user.name|cc_initials }} {% if group.user.url %}{{ group.user.name }}{% else %}{{ group.user.name }}{% endif %}{% for p in group.parts %}{{ p.count }} {{ p.verb|cc_verb }}{% if not forloop.last %}, {% endif %}{% endfor %} ยท {% blocktranslate count counter=group.model_count %}{{ counter }} model{% plural %}{{ counter }} models{% endblocktranslate %} {% else %} {% icon group.model.icon %} {% if group.model.list_url %}{{ group.model.label }}{% else %}{{ group.model.label }}{% endif %}{% for p in group.parts %}{{ p.count }} {{ p.verb|cc_verb }}{% if not forloop.last %}, {% endif %}{% endfor %} {% endif %} {% icon "chevron-down" "cc-caret" %} {% if activity.details %}
    {% for item in group.items %}
  1. {% icon item.icon %}

    {{ item.verb|cc_verb|capfirst }}{% if group.user %} {{ item.model.single|lower }}{% endif %} {% if item.url %}{{ item.repr }}{% else %}{{ item.repr }}{% endif %}

    {% if item.message %}{{ item.message }}{% endif %}
  2. {% endfor %}
{% endif %}
{% empty %}
{% icon "calendar" %}

{% translate 'Nothing was changed on this day.' %}

{% endfor %} {% else %}

{% translate 'Contribution activity' %}

{% for month in activity.months %}
4 %} hidden data-feed-more{% endif %}>

{{ month.period|date:'F' }} {{ month.period|date:'Y' }}

{% for line in month.lines %}
{% icon line.icon %}{{ line.text }}{% icon "chevron-down" "cc-caret" %}
    {% for m in line.models %}
  • {% icon m.icon %}{% if m.list_url %}{{ m.label }}{% else %}{{ m.label }}{% endif %} {% blocktranslate count counter=m.count %}{{ counter }} time{% plural %}{{ counter }} times{% endblocktranslate %}
  • {% endfor %}
{% endfor %}
{% if forloop.last and forloop.counter > 4 %}{% endif %} {% empty %}
{% icon "activity" %}

{% translate 'No activity in this period.' %}

{% endfor %} {% endif %}