{% load i18n log admin_kubi_tags %} {% has_kubi_feature 'ADMIN_HISTORY' as has_admin_history %} {% if has_admin_history and app_list %}
{% if is_app_index %} {% for app in app_list %} {% blocktrans with app.name as name %}{{ name }}{% endblocktrans %} {% endfor %} {% endif %} {% trans 'Recent Actions' %}
{% if is_app_index %} {% get_admin_log_for_app 10 as admin_log for_user user %} {% else %} {% get_admin_log 10 as admin_log for_user user %} {% endif %} {% if not admin_log %}
{% trans 'Currently there are no actions for this user.' %}
{% else %}
{% for entry in admin_log %} {% with message=entry.get_change_message admin_url=entry.get_admin_url content_type=entry.content_type %} {% if entry.is_addition %} {% elif entry.is_change %} {% elif entry.is_deletion %} {% endif %}
{{ entry.object_repr }} {% if content_type %} {% filter capfirst %}{% trans content_type.name %}{% endfilter %} {% else %} {% trans 'Unknown content' %} {% endif %}

{% if entry.is_deletion %} {% translate "Deleted" %} {% else %} {{ message }} {% endif %}

{{ entry.action_time|naturaltimeshort }}
{% endwith %} {% endfor %}
{% endif %}
{% endif %}