Skip to content
Snippets Groups Projects

Tabulky řešení

Merged
Jiří Setničkarequested to merge
jirka/solutions-table into devel
All threads resolved!

Files

@@ -16,14 +16,14 @@ konkrétní úlohu.</p>
<table class="data full center">
<thead>
<tr>
<th rowspan=2>Účastník</th>
<th rowspan=2>Účastník
{% for task in tasks %}<th colspan=4>
<a href="{{ url_for('org_contest_task_submits', contest_id=contest.contest_id, site_id=site_id, task_id=task.task_id) }}">{{ task.code }}</a>
</th>{% endfor %}
<th rowspan=2>Body celkem</th>
{% endfor %}
<th rowspan=2>Body celkem
</tr>
<tr>
{% for task in tasks %}<th title="Řešení">Řeš</th><th title="Oprava">Opr</th><th title="Body">B</th><th title="Detail">🔍</th>{% endfor %}
{% for task in tasks %}<th title="Řešení">Řeš<th title="Oprava">Opr<th title="Body">B<th title="Detail">🔍{% endfor %}
</tr>
</thead>
{% for pion in pions %}
@@ -36,24 +36,21 @@ konkrétní úlohu.</p>
{% set sol = tasks_sols[task.task_id][u.user_id] %}
{% set p = sol.last_submit_obj %}
{% set late = p.check_deadline(round) %}
<td>
<a href="{{ paper_link(p) }}" title="{{ p.uploaded_at|timeformat }} - {{ p.pages }} stránek{% if late %} - {{ late }}" class="sol-late{% endif %}">🖺</a>
</td>
<td>
<td class="sol {% if late %}sol-late{% endif %}">
<a href="{{ paper_link(p) }}" title="{{ p.uploaded_at|timeformat }} - {{ p.pages|inflected('stránka', 'stránky', 'stránek') }}{% if late %} - {{ late }}{% endif %}">🖺</a>
<td class="sol">
{% if sol.last_feedback_obj %}
{% set p = sol.last_feedback_obj %}
<a href="{{ paper_link(p) }}" title="{{ p.uploaded_at|timeformat }} - {{ p.pages }} stránek">🖺</a>
<a href="{{ paper_link(p) }}" title="{{ p.uploaded_at|timeformat }} - {{ p.pages|inflected('stránka', 'stránky', 'stránek') }}">🖺</a>
{% endif %}
</td>
<td>{% if sol.points %}
<td class="sol">{% if sol.points %}
{{ sol.points }}
{% if sum_points.append(sol.points) %}{% endif %}
{% else %}–{% endif %}
</td>
<td>
<a class="btn btn-xs btn-default" title="Detail řešení" href="{{ url_for('org_submit_list', contest_id=contest.contest_id, user_id=u.user_id, task_id=task.task_id, site_id=site_id) }}">🔍</a>
</td>
{% else %}<td colspan=4></td>{% endif %}
<td class="sol">
{% else %}<td colspan=3><td>{% endif %}
<a class="btn btn-xs btn-link" title="Detail řešení" href="{{ url_for('org_submit_list', contest_id=contest.contest_id, user_id=u.user_id, task_id=task.task_id, site_id=site_id) }}">🔍</a>
{% endfor %}
<th>{{ sum_points|sum }}</th>
</tr>
Loading