Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show career diagram if allow_career_users is active BT#18720
- Loading branch information
Showing
6 changed files
with
59 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5434,10 +5434,11 @@ function ($value, $key) use ($trackingColumns) { | |
* @param int $user_id | ||
* @param string $course_code | ||
* @param int $session_id | ||
* @param bool $showDiagram | ||
* | ||
* @return string html code | ||
*/ | ||
public static function show_course_detail($user_id, $course_code, $session_id) | ||
public static function show_course_detail($user_id, $course_code, $session_id, $showDiagram = false) | ||
{ | ||
$html = ''; | ||
if (isset($course_code)) { | ||
|
@@ -5451,6 +5452,13 @@ public static function show_course_detail($user_id, $course_code, $session_id) | |
$html .= '<a name="course_session_data"></a>'; | ||
$html .= Display::page_subheader2($course_info['title']); | ||
|
||
if ($showDiagram && !empty($session_id)) { | ||
$visibility = api_get_session_visibility($session_id); | ||
if (SESSION_AVAILABLE === $visibility) { | ||
$html .= Display::page_subheader2($course_info['title']); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jmontoyaa
Author
Member
|
||
} | ||
} | ||
|
||
// Course details | ||
|
||
// Show exercise results of invisible exercises? see BT#4091 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$course_info['title']
will be shown two times if$showDiagram
and!empty($session_id)
🤔