{% for i in activity_list %}
{% get_url i.pk as res_type %}
{% if res_type != "None" or "Reply" in i.member_of_names_list %}
{% endif %}
{% endfor %}
{% if hyperlinks %}
{{i.user_details_dict.created_by}}
{% else %}
{{i.user_details_dict.created_by}}
{% endif %}
has
{% if "Reply" in i.member_of_names_list %}
{% trans "commented" %}
{% if i.origin %}
{% for each_origin_field in i.origin %}
{% if "prior_node_id_of_thread" in each_origin_field %}
{% get_node each_origin_field.prior_node_id_of_thread as prior_node_obj %}
{% if prior_node_obj %}
{% trans " on " %}{{prior_node_obj.name}}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% elif "File" in i.member_of_names_list %}
{% if i.activity == "created" %}
{% trans "uploaded" %}
{% else %}
{{i.activity}}
{% endif %}
{% else %}
{{i.activity}}
{% endif %}
{% if hyperlinks %}
{% if res_type != "event_app_instance_detail" %}
{{i.name|truncatechars:50}}
{% else %}
{% get_event_type i as app_set_id %}
{{i.name}}
{% endif %}
{% else %}
{% if "Reply" not in i.member_of_names_list %} {{i.name}}{% endif %}
{% endif %}
{% if hyperlinks %}
{{i.created_at|timesince}} ago
{% if 'image' in i.if_file.mime_type %}
{% endif %}
{% if res_type == 'Forum' %}
{% endif %}
{% if res_type == 'event_app_instance_detail' %}
{% endif %}
{% if i.if_file.mime_type == 'application/zip' %}
{% endif %}
{% if i.if_file.mime_type == 'application/pdf' %}
{% endif %}
{% if i.mime_type == 'application/octet-stream' %}
{% endif %}
{% if i.mime_type == 'application/msword' %}
{% endif %}
{% if i.mime_type == 'text/plain' or res_type == 'page_details' %}
{% endif %}
{% endif %}