MDL-19692: Improvement to help icon for completion tickboxes, based on user testing
This commit is contained in:
@@ -160,6 +160,20 @@ class completion_info {
|
||||
return $cm->completion;
|
||||
}
|
||||
|
||||
/**
|
||||
* Print the Your progress help icon if the completion tracking is enabled.
|
||||
* @global object
|
||||
* @return void
|
||||
*/
|
||||
public function print_help_icon() {
|
||||
global $PAGE;
|
||||
if ($this->is_enabled() && !$PAGE->user_is_editing() && isloggedin() && !isguestuser()) {
|
||||
echo '<span class="completionprogress">'.get_string('yourprogress','completion').' ';
|
||||
helpbutton('completionicons',get_string('completionicons','completion'),'completion');
|
||||
echo '</span>';
|
||||
}
|
||||
}
|
||||
// OU specific end
|
||||
/**
|
||||
* Updates (if necessary) the completion state of activity $cm for the given
|
||||
* user.
|
||||
|
||||
Reference in New Issue
Block a user