From 36ece88108ef63e1ea79b81ca3c5480eff7022aa Mon Sep 17 00:00:00 2001 From: christianbeeznst Date: Thu, 27 Jun 2024 13:38:44 -0500 Subject: [PATCH] Forum: Add icon for base course forums in lesson list- refs BT#21692 --- assets/css/scss/_lp.scss | 2 +- public/main/lp/learnpath.class.php | 33 +++++++++++++++---- public/main/lp/lp_list.php | 7 +++- .../Repository/CLpItemRepository.php | 13 ++++++++ 4 files changed, 46 insertions(+), 9 deletions(-) diff --git a/assets/css/scss/_lp.scss b/assets/css/scss/_lp.scss index ab5c3d0001..7445053f29 100644 --- a/assets/css/scss/_lp.scss +++ b/assets/css/scss/_lp.scss @@ -65,7 +65,7 @@ } #resource_tab { - margin-top: 15px; + margin: 0px 15px; } #resource_tab .nav-tabs { diff --git a/public/main/lp/learnpath.class.php b/public/main/lp/learnpath.class.php index f84e39b4d3..e7a06d651a 100644 --- a/public/main/lp/learnpath.class.php +++ b/public/main/lp/learnpath.class.php @@ -6816,12 +6816,6 @@ class learnpath $return .= ' '; $return .= Display::getMdiIcon('comment-quote', 'ch-tool-icon', null, 16, get_lang('Forum')); - $alertIcon = ''; - if (!$isForumSession && $userRights) { - $tooltip = get_lang('This Learningpath includes a forum in the base course, so once users in a session will participate in this forum, it will start to appear in the forum tool in the session, whereas by default forums from the base course do not appear in the session.'); - $alertIcon = Display::return_icon('warning.png', $tooltip, null, ICON_SIZE_SMALL); - } - $moveLink = Display::url( $title, api_get_self().'?'. @@ -6840,7 +6834,7 @@ class learnpath id="forum_'.$forumId.'_opener" align="absbottom" /> - '.$moveLink. ' '.$alertIcon; + '.$moveLink; $return .= ''; $return .= '