{% extends "inventory/view_item.html" %} {% from "_helpers.html" import item_comment_form, item_comment %} {% block comments %} {% for comment in item.comments | sort(attribute='created_at') %} {% if comment.id == comment_id %} {{ item_comment_form(form, item) }} {% else %} {{ item_comment(comment) }} {% endif %} {% endfor %} {% endblock %} {% block comment_item %} {% endblock %}