diff --git a/game/static/game/js/level_selection.js b/game/static/game/js/level_selection.js index 80e48862f..483dcd3ef 100644 --- a/game/static/game/js/level_selection.js +++ b/game/static/game/js/level_selection.js @@ -1,25 +1,7 @@ -/* global showPopupConfirmation */ - $(function() { setupCoins(); }); -function goToPythonDen() { - window.location.href = window.location.href.replace("rapidrouter", "pythonden"); -} - -function movedToPythonDenPopup() { - let title = "Python Den"; - let text = ` - `; - let confirmHandler = "goToPythonDen()"; - - showPopupConfirmation(title, text, confirmHandler); -} - function setupCoins() { for(var i = 0; i < EPISODES.length; i++) { var episode = EPISODES[i]; diff --git a/game/templates/game/level_selection.html b/game/templates/game/level_selection.html index d12fe039b..c5aae1f89 100644 --- a/game/templates/game/level_selection.html +++ b/game/templates/game/level_selection.html @@ -68,11 +68,11 @@ {% block content %}
- {% include "portal/partials/popup.html" %}

Blockly levels

- The first set of levels use Blockly to slowly introduce you to Python. You can read more about Blockly + The first set of levels use Blockly to slowly introduce you to + core programming concepts. You can read more about Blockly here.
{% for episode in blocklyEpisodes %} @@ -123,52 +123,6 @@

Blockly levels

{% endfor %} -
-

Python levels

- The next set of levels introduce you to coding directly with Python. You can read more about Python - here. -
- {% for episode in oldPythonEpisodes %} -
-
- -
- -
-
- {% for level in episode.levels %} - {% if user|is_logged_in_as_student and user.new_student.class_field in level.locked_for_class.all %} - -

- {{level.name}}: - {{level.title.strip | safe}} - {% if level.score != None %} - {{level.score|floatformat}}/{{level.maxScore|floatformat}} - - {% endif %} -

- {% else %} - -

- {{level.name}}: {{level.title.strip | safe}} - {% if level.score != None %} - {{level.score|floatformat}}/{{level.maxScore|floatformat}} - - {% endif %} -

- {% endif %} - {% endfor %} -
-
-
- {% endfor %} - {% if user|is_logged_in %}

Created levels

diff --git a/game/views/level_selection.py b/game/views/level_selection.py index 208e0b587..83d5ab424 100644 --- a/game/views/level_selection.py +++ b/game/views/level_selection.py @@ -233,19 +233,6 @@ def levels(request, language): context["blocklyEpisodes"] = blockly_episodes - old_python_episodes = fetch_episode_data( - app_settings.EARLY_ACCESS_FUNCTION(request), 10, 11 - ) - - for episode in old_python_episodes: - for level in episode["levels"]: - attach_attempts_to_level(attempts, level) - level["locked_for_class"] = Level.objects.get( - id=level["id"] - ).locked_for_class - - context["oldPythonEpisodes"] = old_python_episodes - elif language == "python": python_episodes = get_python_episodes(request)