diff --git a/main/mySpace/course.php b/main/mySpace/course.php index b1986fe365..f9b82e75d8 100755 --- a/main/mySpace/course.php +++ b/main/mySpace/course.php @@ -197,6 +197,7 @@ function get_courses($from, $limit, $column, $direction) $userId = api_get_user_id(); $sessionId = isset($_GET['session_id']) ? intval($_GET['session_id']) : 0; $keyword = isset($_GET['keyword']) ? $_GET['keyword'] : null; + $follow = isset($_GET['follow']) ? true : false; $drhLoaded = false; if (api_is_drh()) { if (api_drh_can_access_all_session_content()) { @@ -224,7 +225,8 @@ function get_courses($from, $limit, $column, $direction) $direction, false, $keyword, - $sessionId + $sessionId, + $follow ); } diff --git a/main/mySpace/index.php b/main/mySpace/index.php index 5ea5b2c732..185e2ec511 100755 --- a/main/mySpace/index.php +++ b/main/mySpace/index.php @@ -221,6 +221,7 @@ $nb_posts = $posts; $avg_time_spent = $totalTimeSpent; $linkAddUser = null; +$linkCourseDetailsAsTeacher = null; $linkAddCourse = null; $linkAddSession = null; @@ -230,9 +231,14 @@ if (api_is_platform_admin()) { api_get_path(WEB_CODE_PATH).'admin/dashboard_add_users_to_user.php?user='.api_get_user_id(), array('class' => '') ); + $linkCourseDetailsAsTeacher = ' '.Display::url( + Display::return_icon('2rightarrow.gif', get_lang('Details')), + api_get_path(WEB_CODE_PATH).'mySpace/course.php', + array('class' => '') + ); $linkAddCourse = ' '.Display::url( - Display::return_icon('add.png', get_lang('Add')), - api_get_path(WEB_CODE_PATH).'admin/dashboard_add_courses_to_user.php?user='.api_get_user_id(), + Display::return_icon('2rightarrow.gif', get_lang('Details')), + api_get_path(WEB_CODE_PATH).'mySpace/course.php?follow', array('class' => '') ); $linkAddSession = ' '.Display::url( @@ -282,15 +288,15 @@ echo '
api_get_path(WEB_CODE_PATH).'mySpace/course.php' ). ' - '.$countAssignedCourses.$linkAddCourse.' + '.$count_courses.$linkCourseDetailsAsTeacher.' '.Display::url( get_lang('FollowedCourses'), - api_get_path(WEB_CODE_PATH).'mySpace/course.php' + api_get_path(WEB_CODE_PATH).'mySpace/course.php?follow' ). ' - '.$count_courses.$linkAddCourse.' + '.$countAssignedCourses.$linkAddCourse.' '.Display::url( diff --git a/plugin/dashboard/block_course/block_course.class.php b/plugin/dashboard/block_course/block_course.class.php index 288ed5047b..5c30433fe3 100755 --- a/plugin/dashboard/block_course/block_course.class.php +++ b/plugin/dashboard/block_course/block_course.class.php @@ -130,7 +130,7 @@ class BlockCourse extends Block } $content .= $data_table; if (!empty($course_data)) { - $content .= '
' . get_lang('SeeMore') . '
'; + $content .= '
' . get_lang('SeeMore') . '
'; } $content .= '
';