{% 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.fedireads_type == 'Shelve' %} {# display a reading/shelving activity #} {% if activity.shelf.shelf_type == 'to-read' %} wants to read {% elif activity.shelf.shelf_type == 'read' %} finished reading {% elif activity.shelf.shelf_type == 'reading' %} started reading {% else %} shelved in "{{ activity.shelf.name }}" {% endif %}

{% include 'snippets/book.html' with book=activity.book size=large description=True %}
{% elif activity.fedireads_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.review_content }}

{% elif activity.activity_type == 'Follow' %} started following someone {% else %} {# generic handling for a misc activity, which perhaps should not be displayed at all #} did {{ activity.activity_type }} {% endif %}
{% endfor %}
{% endblock %}