$string['user:viewhiddendetails'] = 'View hidden details of users';
$string['user:viewuseractivitiesreport'] = 'See user activity reports';
$string['viewrole'] = 'View role details';
-$string['xuserswiththerole'] = 'Users with the role \"$a->role\": $a->number';
+$string['xuserswiththerole'] = 'Users with the role \"$a->role\"';
+$string['ingroup'] = 'in the group \"$a->group\"';
+$string['inactiveformorethan'] = 'inactive for more than $a->timeperiod';
// MNET
$string['site:mnetlogintoremote'] = 'Roam to a remote Moodle';
}else{
$a->role = $currentrole->name;//safety net
}
- $heading = format_string(get_string('xuserswiththerole', 'role', $a));
+
+ $heading = format_string(get_string('xuserswiththerole', 'role', $a));
+
+ if ($currentgroup and $group) {
+ $a->group = $group->name;
+ $heading .= ' ' . format_string(get_string('ingroup', 'role', $a));
+ }
+
+ if ($accesssince) {
+ $a->timeperiod = $timeoptions[$accesssince];
+ $heading .= ' ' . format_string(get_string('inactiveformorethan', 'role', $a));
+ }
+
+ $heading .= ": $a->number";
+
if (user_can_assign($context, $roleid)) {
$heading .= ' <a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?roleid='.$roleid.'&contextid='.$context->id.'">';
$heading .= '<img src="'.$CFG->pixpath.'/i/edit.gif" class="icon" alt="" /></a>';