Skip to content

Commit

Permalink
Fix indentation in _children.html
Browse files Browse the repository at this point in the history
  • Loading branch information
markkuriekkinen committed May 31, 2023
1 parent ba02dcc commit 4003ae0
Showing 1 changed file with 28 additions and 29 deletions.
57 changes: 28 additions & 29 deletions exercise/templates/exercise/_children.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,32 @@
{% load course %}
{% load exercise %}
{% for entry in children %}

{% if entry.type == 'level' %}
{% if entry.down %}
<ul class="toc">
{% elif entry.up %}
</ul>
{% endif %}
{% elif entry|is_listed %}
<li>
{% if accessible and not entry.submittable or exercise_accessible %}
{% if entry.is_empty %}
{{ entry.name|parse_localization }}
{% else %}
<a href="{{ entry.link }}">{{ entry.name|parse_localization }}</a>
{% endif %}
{% if entry.submission_count %}
{% points_badge entry %}
{% endif %}
{% else %}
{{ entry.name|parse_localization }}
{% if is_course_staff %}
<a href="{{ entry.link }}">
<span class="glyphicon glyphicon-lock" aria-hidden="true"></span>
{% translate "EARLY_ACCESS" %}
</a>
{% endif %}
{% endif %}
</li>
{% endif %}
{% if entry.type == 'level' %}
{% if entry.down %}
<ul class="toc">
{% elif entry.up %}
</ul>
{% endif %}
{% elif entry|is_listed %}
<li>
{% if accessible and not entry.submittable or exercise_accessible %}
{% if entry.is_empty %}
{{ entry.name|parse_localization }}
{% else %}
<a href="{{ entry.link }}">{{ entry.name|parse_localization }}</a>
{% endif %}
{% if entry.submission_count %}
{% points_badge entry %}
{% endif %}
{% else %}
{{ entry.name|parse_localization }}
{% if is_course_staff %}
<a href="{{ entry.link }}">
<span class="glyphicon glyphicon-lock" aria-hidden="true"></span>
{% translate "EARLY_ACCESS" %}
</a>
{% endif %}
{% endif %}
</li>
{% endif %}
{% endfor %}

0 comments on commit 4003ae0

Please sign in to comment.