Show all users in Users table even if they don't have any history.

This commit is contained in:
Tim 2015-08-14 01:05:35 +02:00
parent e8e5a0b5ff
commit ad12a85c6c
3 changed files with 29 additions and 20 deletions

View file

@ -27,6 +27,7 @@ users_list_table_options = {
}
},
"orderable": false,
"searchable": false,
"className": "users-poster-face",
"width": "40px"
},
@ -47,21 +48,33 @@ users_list_table_options = {
},
{
"targets": [2],
"data": "started",
"data": "last_seen",
"render": function ( data, type, full ) {
return moment(data, "X").fromNow();
if (data) {
return moment(data, "X").fromNow();
} else {
return "never";
}
},
"searchable": false,
"className": "hidden-xs",
},
{
"targets": [3],
"data": "ip_address",
"searchable": false,
"render": function ( data, type, full ) {
if (data) {
return data;
} else {
return "n/a";
}
},
"className": "hidden-xs",
},
{
"targets": [4],
"data": "plays"
"data": "plays",
"searchable": false
}
],