Skip to content

Commit 0aa3a4f

Browse files
committed
add comment about __
1 parent 1436d46 commit 0aa3a4f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

bullet/problems/templates/problems/results.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,20 @@ <h2 class="text-2xl md:text-4xl mt-4 font-semibold">
3232
{% translate "International" %}
3333
</a>
3434

35-
{% for c in countries %} {% if c != "__" %}
35+
{% for c in countries %}
36+
{% if c != "__" %}{# __ is the legacy OPEN category #}
3637
<a href="{% if competition_number %}{% country_url "archive_results_category" category=category.identifier competition_number=competition_number country=c.code|lower %}{% else %}{% country_url "results_category" category=category.identifier country=c.code|lower %}{% endif %}{% query_transform %}"
37-
class="{% if c == country %} bg-primary text-white font-bold {% else %} bg-gray-100 {% endif %} whitespace-nowrap py-1 px-2 rounded flex gap-2 items-center flex-wrap">
38+
class="{% if c == country %} bg-primary text-white font-bold {% else %} bg-gray-100 {% endif %} whitespace-nowrap py-1 px-2 rounded flex gap-2 items-center flex-wrap">
3839
<iconify-icon icon="flag:{{ c.code|lower }}-4x3" width="none" class="h-4 aspect-4/3"></iconify-icon>
3940
{{ c.name }}
4041
</a>
41-
{% else %}
42+
{% else %}
4243
<a href="{% if competition_number %}{% country_url "archive_results_category" category=category.identifier competition_number=competition_number country=c.code|lower %}{% else %}{% country_url "results_category" category=category.identifier country=c.code|lower %}{% endif %}{% query_transform %}"
43-
class="{% if c == country %} bg-primary text-white font-bold {% else %} bg-gray-100 {% endif %} whitespace-nowrap py-1 px-2 rounded flex gap-2 items-center flex-wrap">
44+
class="{% if c == country %} bg-primary text-white font-bold {% else %} bg-gray-100 {% endif %} whitespace-nowrap py-1 px-2 rounded flex gap-2 items-center flex-wrap">
4445
Open
4546
</a>
46-
{% endif %} {% endfor %}
47+
{% endif %}
48+
{% endfor %}
4749
</div>
4850
{% include "problems/results/table.html" %}
4951
</div>

0 commit comments

Comments
 (0)