{% load fr_display %} {% if request.user.is_authenticated %} {% with book.id|uuid as uuid %} {% active_shelf book as active_shelf %}
{% if active_shelf.identifier == 'read' %} {% elif active_shelf.identifier == 'reading' %} {% elif active_shelf.identifier == 'to-read' %} {% else %}
{% csrf_token %}
{% endif %}
{% endwith %} {% endif %}