diff --git a/app/Resources/public/css/base.css b/app/Resources/public/css/base.css index 114d4b6ffe..83b68847db 100644 --- a/app/Resources/public/css/base.css +++ b/app/Resources/public/css/base.css @@ -4705,7 +4705,21 @@ div#chat-remote-video video { display: inline-block; } /* list my course user*/ - +.session .info-session{ + margin-bottom: 10px; + font-size: 12px; +} +.session .info-session span{ + margin-right: 10px; +} +.session .teachers{ + font-size: 12px; +} +.session .sessions-items .courses{ + padding-bottom: 10px; + padding-top: 10px; + border-bottom: 1px solid #ECF0F1; +} .grid-courses .items{ /* position: relative; */ vertical-align: top; @@ -4842,40 +4856,7 @@ div#chat-remote-video video { color: #fff; } /* Catalog session */ -.column-session{ - column-count: 3; - -moz-column-count: 3; - -webkit-column-count: 3; -} -.column-session .items{ - width: 100%; - display: inline-block; - margin-bottom: 1em; - border-radius: 5px; - border: 1px solid #dddddc; - overflow: hidden; -} -.column-session .items .items-header{ - background-color: #ECF0F1; -} -.column-session .items .items-header .title{ - font-size: 15px; - font-weight: bold; - margin-bottom: 5px; -} -.column-session .items .items-header .info, -.column-session .items .items-header .date{ - font-size: 12px; -} -.column-session .items .items-header .info span{ - margin-right: 5px; -} -.column-session .items .card-course .list-group .list-group-item{ - border: none; -} -.column-session .items .card-course .list-group .list-group-item:first-child{ - border-radius: 0; -} + .search-session{ margin-bottom: 30px; margin-top: 25px; diff --git a/main/auth/courses.php b/main/auth/courses.php index 736ea09825..380d09caff 100755 --- a/main/auth/courses.php +++ b/main/auth/courses.php @@ -18,7 +18,7 @@ require_once '../inc/global.inc.php'; $ctok = Security::get_existing_token(); // Get Limit data -$limit = CourseCategory::getLimitArray(); +$limit = CourseCategory::getLimitFilterFromArray(); // Section for the tabs. $this_section = SECTION_CATALOG; diff --git a/main/inc/lib/course.lib.php b/main/inc/lib/course.lib.php index 875b777158..cc0500d1ef 100755 --- a/main/inc/lib/course.lib.php +++ b/main/inc/lib/course.lib.php @@ -3936,9 +3936,11 @@ class CourseManager $params = array(); $params['icon'] = Display::return_icon( 'blackboard_blue.png', - api_htmlentities($course_info['name']), + null, array(), - ICON_SIZE_LARGE + ICON_SIZE_LARGE, + null, + true ); // Display the "what's new" icons @@ -3986,24 +3988,24 @@ class CourseManager $params['link'] = $session_url; $params['title'] = $session_title; - $params['right_actions'] = ''; - + $params['edit_actions'] = ''; + $params['document'] = ''; + if ($course_visibility != COURSE_VISIBILITY_CLOSED && $course_visibility != COURSE_VISIBILITY_HIDDEN ) { + if (api_is_platform_admin()) { + $params['edit_actions'] .= api_get_path(WEB_CODE_PATH) . 'course_info/infocours.php?cidReq=' . $course_info['code']; if ($load_dirs) { - $params['right_actions'] .= '' . - Display::return_icon('folder.png', - get_lang('Documents'), - array('align' => 'absmiddle'), - ICON_SIZE_SMALL - ) . ''; - $params['right_actions'] .= Display::div('', array( + $params['document'] .= '' . + Display::returnFontAwesomeIcon('folder-open') . ''; + $params['document'] .= Display::div('', array( 'id' => 'document_result_' . $course_info['real_id'] . '_' . $course_info['id_session'], 'class' => 'document_preview_container' )); } } + } if (api_get_setting('display_coursecode_in_courselist') == 'true') { $session_title .= ' (' . $course_info['visual_code'] . ') '; @@ -4011,23 +4013,24 @@ class CourseManager if (api_get_setting('display_teacher_in_courselist') === 'true') { - $teacher_list = CourseManager::get_teacher_list_from_course_code_to_string( - $course_info['code'], - self::USER_SEPARATOR, - true + $teacher_list = CourseManager::getTeachersFromCourseByCode( + $course_info['code'] ); + $course_coachs = self::get_coachs_from_course( $course_info['id_session'], $course_info['real_id'] ); - if ($course_info['status'] == COURSEMANAGER || + /* if ($course_info['status'] == COURSEMANAGER || ($course_info['status'] == STUDENT && empty($course_info['id_session'])) || empty($course_info['status']) ) { $params['teachers'] = $teacher_list; } - + */ + $params['teachers'] = $teacher_list; + if (($course_info['status'] == STUDENT && !empty($course_info['id_session'])) || ($is_coach && $course_info['status'] != COURSEMANAGER) ) { diff --git a/main/template/default/user_portal/grid_session.tpl b/main/template/default/user_portal/grid_session.tpl index bd9dea80b8..e8734049da 100644 --- a/main/template/default/user_portal/grid_session.tpl +++ b/main/template/default/user_portal/grid_session.tpl @@ -1,7 +1,8 @@ {% for row in session %} -