mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 08:16:06 -07:00
library_media_stats for libraries page
This commit is contained in:
parent
aed84852c0
commit
7bc94cd95d
2 changed files with 26 additions and 0 deletions
|
@ -202,6 +202,30 @@ libraries_list_table_options = {
|
||||||
"searchable": false,
|
"searchable": false,
|
||||||
"width": "10%",
|
"width": "10%",
|
||||||
"className": "no-wrap"
|
"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"
|
||||||
}
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
|
@ -41,6 +41,8 @@
|
||||||
<th align="left" id="last_played">Last Played</th>
|
<th align="left" id="last_played">Last Played</th>
|
||||||
<th align="left" id="total_plays">Total Plays</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_duration">Total Played Duration</th>
|
||||||
|
<th align="left" id="total_storage">Total Storage</th>
|
||||||
|
<th align="left" id="total_runtime">Total Runtime</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue