diff --git a/lang/en/course.php b/lang/en/course.php index b3e83798d02..7895d12e28f 100644 --- a/lang/en/course.php +++ b/lang/en/course.php @@ -80,6 +80,7 @@ $string['target:norecentaccesses_help'] = 'This target identifies students who h $string['target:norecentaccessesinfo'] = 'The following students have not accessed a course they are enrolled in within the set analysis interval (by default the past month).'; $string['target:noteachingactivity'] = 'Courses at risk of not starting'; $string['target:noteachingactivity_help'] = 'This target describes whether courses due to start in the coming week will have teaching activity.'; +$string['target:noteachingactivityinfo'] = 'The following courses due to start in the upcoming days are at risk of not starting because they don\'t have teachers or students enroled'; $string['targetlabelstudentcompletionno'] = 'Student who is likely to meet the course completion conditions'; $string['targetlabelstudentcompletionyes'] = 'Student at risk of not meeting the course completion conditions'; $string['targetlabelstudentcompetenciesno'] = 'Student who is likely to achieve the competencies assigned to a course'; diff --git a/lang/en/user.php b/lang/en/user.php index aefc750d367..9bb7077ac5f 100644 --- a/lang/en/user.php +++ b/lang/en/user.php @@ -127,3 +127,4 @@ $string['privacy:privatefilespath'] = 'Private files'; $string['privacy:sessionpath'] = 'Session data'; $string['target:upcomingactivitiesdue'] = 'Upcoming activities due'; $string['target:upcomingactivitiesdue_help'] = 'This target generates reminders for upcoming activities due.'; +$string['target:upcomingactivitiesdueinfo'] = 'This is the manager\'s view for all upcoming "activities due" insights. These students have received these insights directly.'; diff --git a/report/insights/classes/output/insight.php b/report/insights/classes/output/insight.php index 79431affd8d..6b5e4f77fe4 100644 --- a/report/insights/classes/output/insight.php +++ b/report/insights/classes/output/insight.php @@ -89,7 +89,14 @@ class insight implements \renderable, \templatable { $data->modelid = $this->model->get_id(); $data->contextid = $this->context->id; $data->predictionid = $predictiondata->id; - $data->insightname = format_string($target->get_name()); + + $targetname = $target->get_name(); + $data->insightname = format_string($targetname); + + $targetinfostr = $targetname->get_identifier() . 'info'; + if (get_string_manager()->string_exists($targetinfostr, $targetname->get_component())) { + $data->insightdescription = get_string($targetinfostr, $targetname->get_component()); + } $data->showpredictionheading = true; if (!$target->is_linear()) { diff --git a/report/insights/classes/output/insights_list.php b/report/insights/classes/output/insights_list.php index dc99159196c..60f3cea7ec6 100644 --- a/report/insights/classes/output/insights_list.php +++ b/report/insights/classes/output/insights_list.php @@ -92,7 +92,14 @@ class insights_list implements \renderable, \templatable { $data = new \stdClass(); $data->modelid = $this->model->get_id(); $data->contextid = $this->context->id; - $data->insightname = format_string($target->get_name()); + + $targetname = $target->get_name(); + $data->insightname = format_string($targetname); + + $targetinfostr = $targetname->get_identifier() . 'info'; + if (get_string_manager()->string_exists($targetinfostr, $targetname->get_component())) { + $data->insightdescription = get_string($targetinfostr, $targetname->get_component()); + } $data->showpredictionheading = true; if (!$target->is_linear()) { diff --git a/report/insights/templates/insight_details.mustache b/report/insights/templates/insight_details.mustache index 304e49433be..42dae4468e5 100644 --- a/report/insights/templates/insight_details.mustache +++ b/report/insights/templates/insight_details.mustache @@ -90,6 +90,8 @@