diff --git a/client/src/utils/typeMaps.ts b/client/src/utils/typeMaps.ts index cebe7550..97f2b1e2 100644 --- a/client/src/utils/typeMaps.ts +++ b/client/src/utils/typeMaps.ts @@ -15,7 +15,7 @@ export function learningContentTypeData(t: LearningContentType): { case "exercise": return { title: "Übung", icon: "it-icon-lc-exercise" }; case "learningmodule": - return { title: "Lernmodul", icon: "it-icon-lc-exercise" }; + return { title: "Lernmodul", icon: "it-icon-lc-learning-module" }; case "media_library": return { title: "Mediathek", icon: "it-icon-lc-media-library" }; case "online_training": diff --git a/server/vbv_lernwelt/course/creators/test_course.py b/server/vbv_lernwelt/course/creators/test_course.py index 632e2821..329f1a22 100644 --- a/server/vbv_lernwelt/course/creators/test_course.py +++ b/server/vbv_lernwelt/course/creators/test_course.py @@ -20,6 +20,7 @@ from vbv_lernwelt.learnpath.tests.learning_path_factories import ( DocumentBlockFactory, ExerciseBlockFactory, LearningContentFactory, + LearningModuleBlockFactory, LearningPathFactory, LearningSequenceFactory, LearningUnitFactory, @@ -200,8 +201,8 @@ def create_test_learning_path(user=None, skip_locales=True): minutes=120, contents=[ ( - "exercise", - ExerciseBlockFactory( + "learningmodule", + LearningModuleBlockFactory( url="/static/media/web_based_trainings/story-06-a-01-emma-und-ayla-campen-durch-amerika-einstieg/scormcontent/index.html" ), ) diff --git a/server/vbv_lernwelt/learnpath/create_default_learning_path.py b/server/vbv_lernwelt/learnpath/create_default_learning_path.py index 42dcc7f6..d5f4dbe6 100644 --- a/server/vbv_lernwelt/learnpath/create_default_learning_path.py +++ b/server/vbv_lernwelt/learnpath/create_default_learning_path.py @@ -12,8 +12,8 @@ from vbv_lernwelt.course.models import CourseCategory, CoursePage from vbv_lernwelt.learnpath.tests.learning_path_factories import ( AssignmentBlockFactory, CircleFactory, - ExerciseBlockFactory, LearningContentFactory, + LearningModuleBlockFactory, LearningPathFactory, LearningSequenceFactory, LearningUnitFactory, @@ -834,7 +834,7 @@ def create_standard_learning_unit( contents=[ ( "learningmodule", - ExerciseBlockFactory(url=wbt_url), + LearningModuleBlockFactory(url=wbt_url), ) ], ) diff --git a/server/vbv_lernwelt/static/icons/icon-lc-learning-module.svg b/server/vbv_lernwelt/static/icons/icon-lc-learning-module.svg new file mode 100644 index 00000000..504c4c8f --- /dev/null +++ b/server/vbv_lernwelt/static/icons/icon-lc-learning-module.svg @@ -0,0 +1,5 @@ + + + + +