From da51da068b3078359e98b2cb5ca9d4a674ac5e83 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Thu, 5 Dec 2024 13:34:07 +0000 Subject: [PATCH] fix: level selection --- .../game/python_den_level_selection.html | 68 ++++++++++--------- 1 file changed, 36 insertions(+), 32 deletions(-) diff --git a/game/templates/game/python_den_level_selection.html b/game/templates/game/python_den_level_selection.html index 9c6be6710..e8a9f87f4 100644 --- a/game/templates/game/python_den_level_selection.html +++ b/game/templates/game/python_den_level_selection.html @@ -70,45 +70,49 @@

Introduction to Python

- {% if user|is_logged_in %} - - {% if user|is_logged_in_as_teacher %} -
- - Lesson plan + {% for worksheet in episode.worksheets %} + {% if not user|is_logged_in or user.new_student.class_field in worksheet.locked_classes.all %} + {% if not user|is_logged_in %} +

In order to access the full content for this course, please log in.

+ {% endif %} + - {% elif user|is_independent_student %} - - {% else %} -
-
- - Worksheet + + {% if user|is_logged_in_as_teacher %} + + + {% elif user|is_independent_student %} + + + {% else %} +
+ + {% endif %} {% endif %} - {% else %} -

In order to access the full content for this course, please log in.

- - - {% endif %} + {% endfor %}