{% if paperResults %}

<table class="table table-striped">
  <tbody>
    {% for paperResult in paperResults if testpapers[paperResult.testId] is defined %}
      {% set testpaper = testpapers[paperResult.testId] %}
      {% set student = users[paperResult.userId] %}
      {% set teacher = users[paperResult.checkTeacherId]|default(null) %}
      {% set courseSet = courseSets[paperResult.courseSetId]|default(null) %}
      {% set course = courses[paperResult.courseId]|default(null) %}
      
      {% include 'my/testpaper/check-list-tr.html.twig' %}

    {% endfor %}
  </tbody>
</table>
{{ web_macro.paginator(paginator) }}

{% else %}
  {% if status == 'reviewing' %}
    <div class="empty">{{'还没有等待批阅的试卷'|trans}}</div>
  {% elseif status == 'finished' %}
    <div class="empty">{{'还没有已经批阅的试卷'|trans}}</div>
  {% endif %}
{% endif %}