Add hidden username and email columns to users table

This commit is contained in:
JonnyWong16 2022-04-01 21:31:06 -07:00
parent b737ab96b4
commit 73b94782f9
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
4 changed files with 36 additions and 6 deletions

View file

@ -90,6 +90,30 @@ users_list_table_options = {
},
{
"targets": [3],
"data": "username",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== null && cellData !== '') {
$(td).html(cellData);
}
},
"visible": false,
"width": "10%",
"className": "no-wrap"
},
{
"targets": [4],
"data": "email",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== null && cellData !== '') {
$(td).html(cellData);
}
},
"visible": false,
"width": "10%",
"className": "no-wrap"
},
{
"targets": [5],
"data": "last_seen",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== null && cellData !== '') {
@ -103,7 +127,7 @@ users_list_table_options = {
"className": "no-wrap"
},
{
"targets": [4],
"targets": [6],
"data": "ip_address",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData) {
@ -121,7 +145,7 @@ users_list_table_options = {
"className": "no-wrap modal-control-ip"
},
{
"targets": [5],
"targets": [7],
"data": "platform",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== null && cellData !== '') {
@ -134,7 +158,7 @@ users_list_table_options = {
"className": "no-wrap modal-control"
},
{
"targets": [6],
"targets": [8],
"data":"player",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== null && cellData !== '') {
@ -155,7 +179,7 @@ users_list_table_options = {
"className": "no-wrap modal-control"
},
{
"targets": [7],
"targets": [9],
"data":"last_played",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== null && cellData !== '') {
@ -196,7 +220,7 @@ users_list_table_options = {
"className": "datatable-wrap"
},
{
"targets": [8],
"targets": [10],
"data": "plays",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== null && cellData !== '') {
@ -208,7 +232,7 @@ users_list_table_options = {
"className": "no-wrap"
},
{
"targets": [9],
"targets": [11],
"data": "duration",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== null && cellData !== '') {