Skip to content

Commit

Permalink
Tracking - Hide the icon of percentage in "Average of tests in Learni…
Browse files Browse the repository at this point in the history
…ng Paths" - refs BT#19627
  • Loading branch information
cfasanando committed Jan 26, 2022
1 parent 1443c2f commit 5759a3d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/install/configuration.dist.php
Expand Up @@ -2096,6 +2096,9 @@
'INVITEE' => false
];*/

// Hides the icon of percentage in "Average of tests in Learning Paths" indication on a student tracking
// $_configuration['student_follow_page_hide_lp_tests_average'] = false;

// KEEP THIS AT THE END
// -------- Custom DB changes
// Add user activation by confirmation email
Expand Down
2 changes: 2 additions & 0 deletions main/mySpace/myStudents.php
Expand Up @@ -1028,8 +1028,10 @@
$details = false;
}

$hideLpTestAverageIcon = api_get_configuration_value('student_follow_page_hide_lp_tests_average');
$tpl->assign('user', $userInfo);
$tpl->assign('details', $details);
$tpl->assign('hide_lp_test_average', $hideLpTestAverageIcon);
$templateName = $tpl->get_template('my_space/user_details.tpl');
$content = $tpl->fetch($templateName);

Expand Down
2 changes: 2 additions & 0 deletions main/template/default/my_space/user_details.tpl
Expand Up @@ -64,6 +64,7 @@
</div>
</div>
</div>
{% if not hide_lp_test_average %}
<div class="col-md-6">
<div class="easy-donut">
<div id="easypiechart-red" title="{{ 'Score'|get_lang }}" class="easypiechart"
Expand All @@ -75,6 +76,7 @@
</div>
</div>
</div>
{% endif %}
</div>

<div class="row">
Expand Down

0 comments on commit 5759a3d

Please sign in to comment.