{% extends "admin/base_site.html" %} {% load i18n cc_admin %} {% block bodyclass %}{{ block.super }} cc-activity-page{% endblock %} {% block breadcrumbs %} {% endblock %} {% block content_title %}

{% translate 'Activity' %}

{% translate 'Who changed what in the admin, day by day.' %}

{% endblock %} {% block object-tools %}
{% include "cc_admin/activity/years.html" %}
{% endblock %} {% block content %}
{% translate 'Changes' %}{% icon "activity" %}
{{ activity.total|cc_compact }}
{% if activity.year %}{{ activity.year }}{% else %}{% translate 'last 12 months' %}{% endif %}
{% translate 'People' %}{% icon "users" %}
{{ people|cc_active_count }}
{% blocktranslate count counter=people|length %}of {{ counter }} account{% plural %}of {{ counter }} accounts{% endblocktranslate %}
{% translate 'Models touched' %}{% icon "boxes" %}
{{ activity.models_touched }}
{% blocktranslate with n=activity.stats.active_days %}{{ n }} active days{% endblocktranslate %}
{% translate 'Busiest day' %}{% icon "flame" %}
{% if activity.stats.busiest %}{{ activity.stats.busiest|date:'M j' }}{% else %}—{% endif %}
{% if activity.stats.busiest %}{% blocktranslate count counter=activity.stats.busiest_count %}{{ counter }} change{% plural %}{{ counter }} changes{% endblocktranslate %}{% endif %}

{% blocktranslate count counter=activity.total %}{{ counter }} change by the whole team{% plural %}{{ counter }} changes by the whole team{% endblocktranslate %}

{% include "cc_admin/activity/split.html" %}
{% with cal=activity.calendar %}{% include "cc_admin/activity/calendar.html" %}{% endwith %}

{% translate 'People' %}

{% for p in people %} {{ p.name|cc_initials }} {{ p.name }}{% if p.superuser %}{% translate 'Superuser' %}{% endif %} {% if p.count %}{% blocktranslate count counter=p.count with models=p.models %}{{ counter }} change in {{ models }} models{% plural %}{{ counter }} changes in {{ models }} models{% endblocktranslate %}{% else %}{% translate 'No changes in this period' %}{% endif %} {% if p.last %}{% blocktranslate with ago=p.last|timesince %}Active {{ ago }} ago{% endblocktranslate %}{% if p.top %} · {% translate 'mostly' %} {{ p.top.label|lower }}{% endif %}{% endif %} {% for w in p.weeks %}{% endfor %} {{ p.share|floatformat:0 }}% {% endfor %}
{% include "cc_admin/activity/feed.html" %}
{% endblock %}