Skip to content
Snippets Groups Projects
Commit cb67258c authored by Martin Mareš's avatar Martin Mareš
Browse files

Zobrazování stavu odevzdaných úloh účastníkům

parent 3679904b
Branches
No related tags found
1 merge request!9WIP: Zárodek uživatelské části webu a submitování
...@@ -11,11 +11,27 @@ ...@@ -11,11 +11,27 @@
<thead> <thead>
<tr> <tr>
<th>Úloha <th>Úloha
<th>Odevzdáno
{% if contest.round.state == db.RoundState.closed %}
<th>Opraveno
<th>Body
{% else %}
<th>Akce
{% endif %}
<tbody> <tbody>
{% for task, sol in task_sols %} {% for task, sol in task_sols %}
<tr> <tr>
<td>{{ task.code }} {{ task.name }} <td>{{ task.code }} {{ task.name }}
<td>{{ (sol.last_submit_obj.uploaded_at if sol.last_submit_obj else None)|timeformat }} <td>{{ (sol.last_submit_obj.uploaded_at if sol.last_submit_obj else None)|timeformat }}
{% if contest.round.state == db.RoundState.closed %}
<td>{{ (sol.last_feedback_obj.uploaded_at if sol.last_feedback_obj else None)|timeformat }}
<td>{{ sol.points if sol.points != None else '–' }}
{% else %}
<td>
{% if contest.round.user_submit_allowed(when) %}
<a class='btn btn-xs btn-success' href='{{ url_for('user_contest_task', contest_id=contest.contest_id, task_id=task.task_id) }}'>Odevzdat</a>
{% endif %}
{% endif %}
{% endfor %} {% endfor %}
</table> </table>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment