{% ifequal profile_user user %}
My Recent Activity
{% else %}{{ profile_user.username }}'s Recent Activity
{% endifequal %} {% ifequal profile_user user %} {% if my_activity|length == 0 %} {% include 'thecommunity/profile_page/insight_templates.html' %} {% else %} {% if my_activity|length < 5 %}
{% include 'thecommunity/profile_page/insight_templates.html' with minimized=True %}
{% endif %}
{% endif %}
{% endifequal %}
-
{% for insight in my_activity %}
{% if insight.has_visualizations %}
{% include 'thecommunity/profile_page/insight_visualization.html' %}
{% else %}
{% include 'thecommunity/profile_page/insight_data.html' %}
{% endif %}
{% endfor %}