{% load sekizai_tags i18n humanize %}
{% if user.is_staff and alert_message %} {% endif %} {% for item in activity_list %}
{{ item.actor.displayName }} {% trans "Published" %} {{ item.published|naturaltime }}
{% if item.annotation %}

{{ item.annotation|safe|truncatechars_html:instance.truncate_chars }}

{% endif %} {% if item.object.content and item.verb != "share" %}
{{ item.object.content|safe|truncatechars_html:instance.truncate_chars }} {% endif %} {% if item.object.attachments %} {% for attachment in item.object.attachments %} {% if attachment.displayName == item.object.content %}

{{ attachment.displayName|truncatechars_html:"140" }}

{% else %}
{% endif %} {% if attachment.image.url %} {% elif attachment.thumbnails %} {% endif %} {% endfor %} {% endif %} {% if item.verb == "share" %}

{% blocktrans with shared_by=item.object.actor.displayName %} Originally shared by {{ shared_by }} {% endblocktrans %} {% if item.object.content %}
{{ item.object.content|safe|truncatechars_html:"140" }} {% endif %}

{% endif %}
plus one {% if item.object.plusoners.totalItems != 0 %}    {{ item.object.plusoners.totalItems}} {% endif %}
comment {% if item.object.replies.totalItems != 0 %}   {{ item.object.replies.totalItems }} {% endif %} share {% if item.object.resharers.totalItems != 0 %}   {{ item.object.resharers.totalItems }} {% endif %}
{% endfor %}