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

Na stránce kola neukazujeme počet přihlášek zbytečně

Ukazuje se jen tehdy, vyžaduje-li kolo potvrzení přihlášek
organizátorem.

Closes #427.
parent 65b6698a
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,7 @@ jg.update(JobType=db.JobType)
jg.update(JobState=db.JobState)
jg.update(RoundType=db.RoundType)
jg.update(CertType=db.CertType)
jg.update(RoundEnrollMode=db.RoundEnrollMode)
# Další typy:
jg.update(Markup=Markup)
......
......@@ -149,7 +149,9 @@
<th>Stavy soutěží
{% endif %}
<th><a href='{{ ctx.url_for('org_contestant_stats') }}' }}' title='Statistiky účastníků'>Počet účastníků</a>
{% if round.enroll_mode == RoundEnrollMode.confirm %}
<th>Počet přihlášek
{% endif %}
</tr>
</thead>
{% for rs in reg_stats %}
......@@ -168,7 +170,9 @@
<td>{% for s in rs.contest_states %}{% if not loop.first %} / {% endif %}<span class='rstate-{{s.name}}'>{{ s.friendly_name() }}</span>{% endfor %}
{% endif %}
<td>{{ rs.num_active_pants }}
{% if round.enroll_mode == RoundEnrollMode.confirm %}
<td>{{ rs.num_unconfirmed_pants }}
{% endif %}
{% endfor %}
<tfoot>
<tr>
......@@ -180,7 +184,9 @@
<th>
{% endif %}
<th>{{ reg_total.num_active_pants }}
{% if round.enroll_mode == RoundEnrollMode.confirm %}
<th>{{ reg_total.num_unconfirmed_pants }}
{% endif %}
</tr>
</tfoot>
</table>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment