{% extends 'layout.html' %} {% load fr_display %} {% block content %}
{% for activity in activities %}

{% include 'snippets/avatar.html' with user=activity.user %} {% include 'snippets/username.html' with user=activity.user %} {% if activity.status_type == 'Review' %} {# display a review #} reviewed {{ activity.book.data.title }}

{% include 'snippets/book.html' with book=activity.book size=large %}

{{ activity.name }}

{{ activity.rating | stars }}

{{ activity.content | safe }}

{% csrf_token %}
{% csrf_token %} {{ comment_form.content }}
{% elif activity.status_type == 'Note' %} posted {{ activity.content | safe }} {% for book in activity.mention_books.all %}
{% include 'snippets/book.html' with book=book size=large description=True %}
{% endfor %} {% else %} {# generic handling for a misc activity, which perhaps should not be displayed at all #} did {{ activity.activity_type }} {% endif %}
{% endfor %}
{% endblock %}