Skip to content

Commit

Permalink
fix: worksheet counter and accordion arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jan 7, 2025
1 parent ef65446 commit 2018a88
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions game/templates/game/python_den_level_selection.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ <h4>Introduction to Python</h4>
<div class="panel-header bg--{{ episode.difficulty }}" id="episode-{{episode.id}}">
<p class="episode-title" data-toggle="collapse" data-target="#collapse-{{episode.id}}" aria-expanded="false" aria-controls="collapse-{{episode.id}}" data-parent="#episodes">
{{episode.name}}
<span class="episode_range_text collapsed" data-toggle="collapse" data-target="#collapse-{{episode.id}}" aria-expanded="false" aria-controls="collapse-{{episode.id}}" data-parent="#episodes"></span>
</p>
</div>

Expand Down Expand Up @@ -143,6 +144,8 @@ <h4>Introduction to Python</h4>
</span>
{% endif %}
{% endif %}
{% else %}
<span class="episode_range_text collapsed" data-toggle="collapse" data-target="#collapse-{{episode.id}}" aria-expanded="false" aria-controls="collapse-{{episode.id}}" data-parent="#episodes"></span>
{% endif %}
<img class="episode_image coin_image" value="{{episode.id}}">
</p>
Expand Down Expand Up @@ -231,15 +234,15 @@ <h4>Introduction to Python</h4>
<p class="text--warning">In order to access the full content for this course, please log in.</p>
{% endif %}
<div class="col-sm-10 python-den-level">
<a class="disabled">{{episode.name}}{% if episode.worksheets|length > 1 %} pt. {{ forloop.counter }}{% endif %}</a>
<a class="disabled">{{episode.name}}{% if episode.counter > 0 %} pt. {{ forloop.counter }}{% endif %}</a>
</div>
<div class="col-sm-2 python-den-level">
<a class="button button--level button--icon disabled">
Worksheet<span class="iconify" data-icon="mdi:open-in-new"></span></a>
</div>
{% else %}
<div class="col-sm-7 python-den-level">
<a href="https://editor.raspberrypi.org/en/projects/blank-python-starter" target="_blank">{{episode.name}}{% if episode.worksheets|length > 1 %} pt. {{ forloop.counter }}{% endif %}</a>
<a href="https://editor.raspberrypi.org/en/projects/blank-python-starter" target="_blank">{{episode.name}}{% if episode.counter > 0 %} pt. {{ forloop.counter }}{% endif %}</a>
</div>
{% if user|is_logged_in_as_teacher %}
<div class="col-sm-3 python-den-level">
Expand Down

0 comments on commit 2018a88

Please sign in to comment.