{# Generic renderer for activity streams #} {% from "macros/user.html" import m_user_photo, m_user_link %} {%- macro m_activities(entries, ignore_communities=False) %} {% endmacro %} {% macro m_activity(entry, ignore_communities=False) %} {% call m_user_link(entry.actor) %} {{ m_user_photo(entry.actor, size=45) }} {% endcall %}
{{ entry.happened_at|age }} {%- call m_user_link(entry.actor) %} {{ entry.actor }} {%- endcall %} {{ entry.message(ignore_communities)|safe }} {%- set body = entry.body %} {%- if body %} {{ body }} {%- endif %}
{%- endmacro %} {% macro m_actor(actor) %} {% endmacro %}