lab.html 784 B

12345678910111213141516171819202122232425262728293031323334353637
  1. {% extends 'base.html' %}
  2. {% block body %}
  3. Lab {{ lab.id }} due {{ lab.due }} at 11:59:59 PDT (UTC-7):
  4. <br>{{ lab.name }}
  5. <br><a href="/static/lab{{ lab.id }}.py">Download</a> the starter code
  6. <p><table id="lab">
  7. <tr>
  8. <th>User</th>
  9. <th>Grade</th>
  10. <th>Time</th>
  11. </tr>
  12. {% for s in submissions %}
  13. <tr{% if s.user.is_staff %} class="staff"{% endif %}>
  14. <td>{{ s.user }}</td>
  15. <td>
  16. {% if staff %}
  17. <a href="/submission/{{ lab.id }}/{{ s.user.id }}/">{{ s.grade }}</a>
  18. {% else %}
  19. {{ s.grade }}
  20. {% endif %}
  21. </td>
  22. <td>{{ s.time }}</td>
  23. </tr>
  24. {% endfor %}
  25. </table></p>
  26. <p>
  27. Users' highest scores and earliest time with that score are displayed.
  28. </p>
  29. <p>
  30. <a href="/submit/{{ lab.id }}/">Submit</a> your solution
  31. <br>
  32. <a href="/">Back</a> to the homepage
  33. </p>
  34. {% endblock %}