From 111c8c5a1cef4a82494545f9690bf1681cf4fd86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Setni=C4=8Dka?= <setnicka@seznam.cz> Date: Thu, 4 Mar 2021 01:47:39 +0100 Subject: [PATCH] =?UTF-8?q?Zobrazen=C3=AD=20v=C5=A1ech=20kol=20-=20slou?= =?UTF-8?q?=C4=8Den=C3=AD=20=C5=99=C3=A1dk=C5=AF=20kol=20a=20podkol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mo/web/templates/org_rounds.html | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/mo/web/templates/org_rounds.html b/mo/web/templates/org_rounds.html index 9f7a2618..42ba1ee5 100644 --- a/mo/web/templates/org_rounds.html +++ b/mo/web/templates/org_rounds.html @@ -14,12 +14,15 @@ </thead> {% for r in rounds %} <tr> - <td><a href='{{ url_for('org_round', id=r.round_id) }}'>{{ r.round_code() }}</a> - <td>{{ r.year }} - <td>{{ r.category }} - <td>{{ r.seq }} - <td>{{ level_names[r.level] }} - <td>{{ r.name }} + {% if not r.is_subround() %} + {% set rowspan = " rowspan=%d" % (subround_counts[r.round_id] + 1) if subround_counts[r.round_id] else "" %} + <td{{ rowspan }}><a href='{{ url_for('org_round', id=r.round_id) }}'>{{ r.round_code() }}</a> + <td{{ rowspan }}>{{ r.year }} + <td{{ rowspan }}>{{ r.category }} + <td{{ rowspan }}>{{ r.seq }} + <td{{ rowspan }}>{{ level_names[r.level] }} + {% endif %} + <td><a href='{{ url_for('org_round', id=r.round_id) }}'>{{ r.name }}</a> <td class='rstate-{{r.state.name}}'>{{ r.state.friendly_name() }} {% endfor %} </table> -- GitLab