diff --git a/kolibri/plugins/coach/assets/src/constants/lessonsConstants.js b/kolibri/plugins/coach/assets/src/constants/lessonsConstants.js index c0cc59694e4..ea7d512759e 100644 --- a/kolibri/plugins/coach/assets/src/constants/lessonsConstants.js +++ b/kolibri/plugins/coach/assets/src/constants/lessonsConstants.js @@ -1,5 +1,6 @@ export const LessonsPageNames = { PLAN_LESSONS_ROOT: 'PLAN_LESSONS_ROOT', + PLAN_LESSONS_ROOT_BETTER: 'PLAN_LESSONS_ROOT_BETTER', LESSON_CREATION_ROOT: 'LESSON_CREATION_ROOT', LESSON_CREATION_ROOT_BETTER: 'LESSON_CREATION_ROOT_BETTER', SUMMARY: 'SUMMARY', diff --git a/kolibri/plugins/coach/assets/src/routes/planLessonsRoutes.js b/kolibri/plugins/coach/assets/src/routes/planLessonsRoutes.js index 747295ef8a8..2ad60d24e17 100644 --- a/kolibri/plugins/coach/assets/src/routes/planLessonsRoutes.js +++ b/kolibri/plugins/coach/assets/src/routes/planLessonsRoutes.js @@ -55,6 +55,20 @@ export default [ titleParts: ['lessonsLabel', 'CLASS_NAME'], }, }, + { + name: LessonsPageNames.PLAN_LESSONS_ROOT_BETTER, + path: '/:classId/plan/lessonstemp', + component: LessonsRootPage, + handler(toRoute, fromRoute, next) { + if (classIdParamRequiredGuard(toRoute, PageNames.PLAN_PAGE, next)) { + return; + } + showLessonsRootPage(store, toRoute.params.classId); + }, + meta: { + titleParts: ['lessonsLabel', 'CLASS_NAME'], + }, + }, { name: LessonsPageNames.LESSON_CREATION_ROOT, path: path(CLASS, ALL_LESSONS, '/new'), diff --git a/kolibri/plugins/coach/assets/src/views/plan/LessonsRootPage/index.vue b/kolibri/plugins/coach/assets/src/views/plan/LessonsRootPage/index.vue index 02b7d555eda..8b8ad2de172 100644 --- a/kolibri/plugins/coach/assets/src/views/plan/LessonsRootPage/index.vue +++ b/kolibri/plugins/coach/assets/src/views/plan/LessonsRootPage/index.vue @@ -2,29 +2,59 @@ - + + + -

+

{{ coachString('totalLessonsSize', { size: calcTotalSizeOfVisibleLessons }) }}

-
- - -
+ +
+ + +
+