{% extends "user_profile/user.html" %} {% block profilesection %} {% trans %}activity{% endtrans %} {% endblock %} {% block usercontent %}
{% for act in activities %}
{{ act.time|diff_date(3) }}
{{ act.type }}
{% if act.is_badge %}  {% trans name=act.badge.name %}{{name}}{% endtrans %} {% if act.related_object_type == 'question' %}{# question #} {% for question in questions %}{# could also create a new dict #} {% if question.question_id == act.obj %} ({% trans %}source{% endtrans %}) {% endif %} {% endfor %} {% elif act.related_object_type == 'answer' %}{# answer #} {% for answer in answers %}{# could also create a new dict #} {% if answer.answer_id == act.obj %} ({% trans %}source{% endtrans %}) {% endif %} {% endfor %} {% endif %} {% else %} {{ act.title|escape }} {% if act.summary %}{{ act.summary|escape }}{% endif %} {% endif %}
{% endfor %}
{% endblock %}