Skip to content
Snippets Groups Projects

WIP: Zárodek uživatelské části webu a submitování

Closed Martin Mareš requested to merge devel into master
Compare and Show latest version
4 files
+ 28
31
Compare changes
  • Side-by-side
  • Inline

Files

@@ -13,19 +13,12 @@
» {{ task.code }} {{ task.name }}
</h2>
<div class="btn-group">
{% if can_upload_feedback %}
<a class="btn btn-primary" href="{{ url_for('org_contest_task_feedback', id=contest.contest_id, task_id=task.task_id) }}">Nahrávání oprav</a>
{% endif %}
{% if can_edit_points %}
<a class="btn btn-primary" href="{{ url_for('org_contest_task_points', id=contest.contest_id, task_id=task.task_id) }}">Zadávání bodů</a>
{% endif %}
</div>
<h3>Přehled odevzdaných řešení</h3>
<p><i>U každého účastníka je zobrazeno jeho poslední odevzdané řešení a přidělené body. Historii všech odevzdání, oprav a bodů
{% if can_upload_feedback or can_edit_points %} a možnost jejich změny{% endif %} naleznete v detailu řešení.</i></p>
naleznete v detailu řešení.
{% if sc.allow_upload_feedback or sc.allow_edit_points %}Tamtéž můžete odevzdávat nové verze.{% endif %}
</i></p>
<table class="data full">
<thead>
@@ -37,10 +30,11 @@
<th>Akce
</tr>
</thead>
{% for sol in solutions %}
{% set u = sol.user %}
{% for pion, sol in rows %}
{% set u = pion.user %}
<tr>
<td><a href="{{ url_for('org_user', id=u.user_id) }}">{{ u.full_name() }}</a>
{% if sol %}
<td>{% if sol.final_submit_obj %}
{% set p = sol.final_submit_obj %}
{% set late = p.check_deadline(round) %}
@@ -51,16 +45,19 @@
{% if p.uploaded_by_obj != u %}
<a href="{{ url_for('org_user', id=p.uploaded_by) }}" title="nahrál {{ p.uploaded_by_obj.full_name() }}" ><b>🛈</b></a>
{% endif %}
{% else %}–{% endif %}
{% else %}–{% endif %}
<td>{% if sol.final_feedback_obj %}
{% set p = sol.final_feedback_obj %}
<a href='{{ paper_link(p) }}'>
{{ (p.uploaded_at if p else None)|timeformat }} ({{ p.pages|inflected('strana', 'strany', 'stran') }})
</a>
<a href="{{ url_for('org_user', id=p.uploaded_by) }}" title="nahrál {{ p.uploaded_by_obj.full_name() }}" ><b>🛈</b></a>
{% else %}–{% endif %}
{% else %}–{% endif %}
<td>{{ sol.points if sol.points != None else '–' }}
<td><a class="btn btn-xs btn-primary" href="{{ url_for('org_submit_list', contest_id=ct_id, user_id=u.user_id, task_id=task.task_id, site_id=site_id) }}">Detail řešení</a>
{% else %}
<td><td>
{% endif %}
<td><a class="btn btn-xs btn-primary" href="{{ url_for('org_submit_list', contest_id=ct_id, user_id=u.user_id, task_id=task.task_id, site_id=site_id) }}">Detail</a>
</tr>
{% endfor %}
</table>
Loading