library_media_stats for libraries page

This commit is contained in:
herby2212 2023-10-29 12:19:10 +01:00
parent aed84852c0
commit 7bc94cd95d
2 changed files with 26 additions and 0 deletions

View file

@ -202,6 +202,30 @@ libraries_list_table_options = {
"searchable": false,
"width": "10%",
"className": "no-wrap"
},
{
"targets": [11],
"data": "total_storage",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== null && cellData !== '') {
$(td).html(humanFileSize(cellData));
}
},
"searchable": false,
"width": "10%",
"className": "no-wrap"
},
{
"targets": [12],
"data": "total_duration",
"createdCell": function (td, cellData, rowData, row, col) {
if (cellData !== null && cellData !== '') {
$(td).html(humanDuration(cellData));
}
},
"searchable": false,
"width": "10%",
"className": "no-wrap"
}
],

View file

@ -41,6 +41,8 @@
<th align="left" id="last_played">Last Played</th>
<th align="left" id="total_plays">Total Plays</th>
<th align="left" id="total_duration">Total Played Duration</th>
<th align="left" id="total_storage">Total Storage</th>
<th align="left" id="total_runtime">Total Runtime</th>
</tr>
</thead>
<tbody>