From 2b0f049b17d34c90aeab53a4f66901be85bb9c77 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 29 Sep 2021 03:38:37 +0200 Subject: [PATCH] Learnpaths: Enable LP title and parent chapter to show in content area - refs BT#19044 --- assets/css/app.scss | 20 +++++++++++++ assets/css/scorm.css | 29 +------------------ public/main/lp/lp_view.php | 1 + .../Resources/views/LearnPath/view.html.twig | 12 ++++++-- 4 files changed, 32 insertions(+), 30 deletions(-) diff --git a/assets/css/app.scss b/assets/css/app.scss index 041a52cc59..fc22cc2d8b 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -242,6 +242,26 @@ #learning_path_toc .child_item.lp_item_type_document.scorm_highlight{ background-color: #f1f4f9; } + #learning_path_right_zone .lp-view-tabs .tab-content { + bottom: 0; + left: 0; + position: absolute; + top: 60px; + right: 0; + border: 1px solid #dddddd; + border-top: none; + } + .scorm_item_normal a.items-list { + color: #666666; + display: inline-block; + width: 100%; + } + .scorm_completed .item a{ + @apply text-gray-500; + } + .scorm_completed .item a.scorm_highlighted{ + @apply text-gray-50; + } @import "scss/index.scss"; } diff --git a/assets/css/scorm.css b/assets/css/scorm.css index 485811d7cf..3a940e286e 100644 --- a/assets/css/scorm.css +++ b/assets/css/scorm.css @@ -250,12 +250,6 @@ body { padding-right: 1.5em; } -.scorm_item_normal a.items-list { - color: #666666; - display: inline-block; - width: 100%; -} - .scorm_item_normal a:hover { text-decoration: none; } @@ -266,17 +260,13 @@ body { .scorm_item_section.scorm_completed { background-color: #F5F5F5; - color: #000; + color: #fff; } .scorm_completed .item { background: url("../../public/img/scorm/scorm_completed.png") no-repeat 10px center; } -.scorm_completed .item a { - color: #000; -} - .scorm_failed .item { background: url("../../public/img/scorm/scorm_failed.png") no-repeat 10px center; } @@ -407,16 +397,6 @@ body { left: 0; } -#learning_path_right_zone .lp-view-tabs .tab-content { - bottom: 0; - left: 0; - position: absolute; - right: 0; - top: 45px; - border: 1px solid #dddddd; - border-top: none; -} - #learning_path_right_zone .tab-pane { height: 100%; position: relative; @@ -737,13 +717,6 @@ body { top: 0; } - #learning_path_right_zone .lp-view-tabs .tab-content { - bottom: 0; - right: 0; - top: 45px; - left: 0; - } - #learning_path_right_zone .tab-pane { } diff --git a/public/main/lp/lp_view.php b/public/main/lp/lp_view.php index ee77b73cd2..800eac330e 100644 --- a/public/main/lp/lp_view.php +++ b/public/main/lp/lp_view.php @@ -536,6 +536,7 @@ if (Tracking::minimumTimeAvailable(api_get_session_id(), api_get_course_int_id() $template->assign('lp_accumulate_work_time', $lpMinTime); $template->assign('lp_mode', $lp->getDefaultViewMod()); $template->assign('lp_title_scorm', $lp->getName()); +$template->assign('lp_item_parents', $oLP->getCurrentItemParentNames($oLP->get_current_item_id())); // @todo Fix lp_view_accordion /*if (true === api_get_configuration_value('lp_view_accordion') && 1 == $lpType) { diff --git a/src/CoreBundle/Resources/views/LearnPath/view.html.twig b/src/CoreBundle/Resources/views/LearnPath/view.html.twig index 05cd14d29f..67b0cd6e23 100644 --- a/src/CoreBundle/Resources/views/LearnPath/view.html.twig +++ b/src/CoreBundle/Resources/views/LearnPath/view.html.twig @@ -155,7 +155,15 @@
-