mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 08:09:47 +02:00
fix for MDL-7483, add table header to user picture on participants listing
This commit is contained in:
parent
9fbccd3907
commit
1d40c70b43
3 changed files with 8 additions and 3 deletions
|
@ -1401,6 +1401,7 @@ $string['usernameemailmatch'] = 'The username and email address do not relate to
|
|||
$string['usernameexists'] = 'This username already exists, choose another';
|
||||
$string['usernamenotfound'] = 'The username was not found in the database';
|
||||
$string['usernotconfirmed'] = 'Could not confirm $a';
|
||||
$string['userpic'] = 'User picture';
|
||||
$string['userprofilefor'] = 'User profile for $a';
|
||||
$string['users'] = 'Users';
|
||||
$string['usersnew'] = 'New users';
|
||||
|
|
|
@ -487,6 +487,10 @@ class flexible_table {
|
|||
}
|
||||
break;
|
||||
|
||||
case 'userpic':
|
||||
// do nothing, do not display sortable links
|
||||
break;
|
||||
|
||||
default:
|
||||
if($this->is_sortable) {
|
||||
if($primary_sort_column == $column) {
|
||||
|
|
|
@ -274,8 +274,8 @@
|
|||
|
||||
/// Define a table showing a list of users in the current role selection
|
||||
|
||||
$tablecolumns = array('picture', 'fullname');
|
||||
$tableheaders = array('', get_string('fullname'));
|
||||
$tablecolumns = array('userpic', 'fullname');
|
||||
$tableheaders = array(get_string('userpic'), get_string('fullname'));
|
||||
if (!isset($hiddenfields['city'])) {
|
||||
$tablecolumns[] = 'city';
|
||||
$tableheaders[] = get_string('city');
|
||||
|
@ -304,7 +304,7 @@
|
|||
$table->define_columns($tablecolumns);
|
||||
$table->define_headers($tableheaders);
|
||||
$table->define_baseurl($baseurl);
|
||||
|
||||
|
||||
$table->sortable(true, 'lastaccess', SORT_DESC);
|
||||
|
||||
$table->set_attribute('cellspacing', '0');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue