Skip to content

Commit 568b768

Browse files
committed
Hide maintenance-mode content from ToC
Fixes #1124 Fixes #438
1 parent ddd4b66 commit 568b768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercise/templates/exercise/_children.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
{% elif entry.up %}
1010
</ul>
1111
{% endif %}
12-
{% elif entry|is_listed %}
12+
{% elif entry|is_listed and not entry|is_in_maintenance %}
1313
<li>
1414
{% if accessible and not entry.submittable or exercise_accessible %}
1515
{% if entry.is_empty %}
1616
{{ entry.name|parse_localization }}
1717
{% else %}
18-
<a href="{{ entry.link }}" class="{% if entry|is_in_maintenance %}maintenance{% endif %}">{{ entry.name|parse_localization }}</a>
18+
<a href="{{ entry.link }}">{{ entry.name|parse_localization }}</a>
1919
{% endif %}
2020
{% if entry.submission_count %}
2121
{% points_badge entry %}

0 commit comments

Comments
 (0)