{% extends 'django_tables2/table.html' %} {% load django_tables2 table_tags review_tags %} {% block table.tbody.row %} {{ block.super }} {% with submission=row.record %}
Applicant
Last updated
Reviewers / Outcomes
{{ submission.full_name }} {% with row.record.activities.last as last_update %} {% if last_update %} by {{ last_update.user }}
{{ last_update.timestamp|date:"Y-m-d \a\t H:i" }} {% else %} — {% endif %} {% endwith %}
    {% for review in row.record.reviews.all %}
  • {{ review.author }} {{ review.get_recommendation_display }}
  • {% endfor %}
{% endwith %} {% if row.record.previous %} {# we have a linked application, re-render the header row #} {% for column in row.table.columns %} {% if forloop.first %} {% else %} {% endif %} {% endfor %} {# mutate the row to render the data for the child row #} {% with row=row|row_from_record:row.record.previous %} {{ block.super }} {% endwith %}
Linked {{ row.record.previous.stage }}{{ column.header }}
{% endif %} {% endblock %}