Skip to content

Commit

Permalink
make small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed Aug 14, 2024
1 parent bbb7242 commit c8c5fdc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion game/python_den_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

urlpatterns = [
url(r"^$", python_levels, name="python_levels"),
url(r"^(?P<levelName>[A-Z0-9]+)/$", play_default_level, name="play_default_level"),
url(r"^(?P<levelName>[A-Z0-9]+)/$", play_default_level, name="play_python_default_level"),
]
5 changes: 0 additions & 5 deletions game/templates/game/level_selection.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,6 @@ <h6>Owned by {{ teacher|make_into_username }}</h6>
</div>
</div>
{% endif %}

<div class="panel-intro">
<h4>Python Den</h4>
The next set of levels introduce you to coding directly with Python. To use our online IDE, go to the <a href="{% url 'python_levels' %}">Python Den</a>.
</div>
</div>
</div>
{% endblock content %}
4 changes: 2 additions & 2 deletions game/templates/game/python_den_level_selection.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ <h4>Introduction to Python</h4>
<!-- Marking titles as safe to enable bold, not to be used for user-created levels -->
<p>
<div class="col-sm-7 python-den-level">
<a href="{% url 'play_default_level' level.name %}">{{level.name}}: {{level.title.strip | safe}}</a>
<a href="{% url 'play_python_default_level' level.name %}">{{level.name}}: {{level.title.strip | safe}}</a>
{% if level.score != None %}
<span class="score_text">{{level.score|floatformat}}/{{level.maxScore|floatformat}}</span>
<img class="level_image coin_image" value="{{level.name}}">
Expand Down Expand Up @@ -179,7 +179,7 @@ <h4>Introduction to Python</h4>
{% else %}
<!-- Marking titles as safe to enable bold, not to be used for user-created levels -->
<p>
<a href="{% url 'play_default_level' level.name %}">{{level.name}}: {{level.title.strip | safe}}</a>
<a href="{% url 'play_python_default_level' level.name %}">{{level.name}}: {{level.title.strip | safe}}</a>
{% if level.score != None %}
<span class="score_text">{{level.score|floatformat}}/{{level.maxScore|floatformat}}</span>
<img class="level_image coin_image" value="{{level.name}}">
Expand Down

0 comments on commit c8c5fdc

Please sign in to comment.