{% comment %} This snippet is used for user activities or activity feed. Variables: activities_page: the page django.core.paginator.Page of activities activity_url: the url for the object's activities obj: the obj the activities are for. activity_source: the source of the activities (optional). Default is to show all. Can be 'USER' or 'SYSTEM'. activity_action: the action of the activity (optional). Defaults to show all actions. Can be one of an action values ("CREATED", "COMMENTED", "UPDATED", "DELETED", etc.) {% endcomment %} {% load humanize activity_tags %} {% spaceless %} {% with activities_object_list=activities_page.object_list %}
{% if not request.is_ajax %} {% if request.user.is_authenticated %}
{% csrf_token %}
{% else %}
Please log in to comment.
{% endif %} {% endif %} {% if activities_page.has_next %}
more
{% endif %}
{% endwith %} {% endspaceless %}