MDL-19692: Improvement to help icon for completion tickboxes, based on user testing

This commit is contained in:
sam_marshall
2009-07-02 09:18:26 +00:00
parent ebebf55cad
commit e3568fde9c
6 changed files with 30 additions and 12 deletions
+14
View File
@@ -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.