mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Add stopped state to history table activity
This commit is contained in:
parent
7bd2c00636
commit
9b4b3e0ecb
1 changed files with 3 additions and 1 deletions
|
@ -59,6 +59,8 @@ history_table_options = {
|
||||||
state = '<span class="current-activity-tooltip" data-toggle="tooltip" title="Currently Paused"><i class="fa fa-pause fa-fw"></i></span>';
|
state = '<span class="current-activity-tooltip" data-toggle="tooltip" title="Currently Paused"><i class="fa fa-pause fa-fw"></i></span>';
|
||||||
} else if (rowData['state'] === 'buffering') {
|
} else if (rowData['state'] === 'buffering') {
|
||||||
state = '<span class="current-activity-tooltip" data-toggle="tooltip" title="Currently Buffering"><i class="fa fa-spinner fa-fw"></i></span>';
|
state = '<span class="current-activity-tooltip" data-toggle="tooltip" title="Currently Buffering"><i class="fa fa-spinner fa-fw"></i></span>';
|
||||||
|
} else if (rowData['state'] === 'stopped') {
|
||||||
|
state = '<span class="current-activity-tooltip" data-toggle="tooltip" title="Currently Stopped"><i class="fa fa-stop fa-fw"></i></span>';
|
||||||
}
|
}
|
||||||
$(td).html('<div><div style="float: left;">' + state + ' ' + date + '</div></div>');
|
$(td).html('<div><div style="float: left;">' + state + ' ' + date + '</div></div>');
|
||||||
} else if (rowData['group_count'] > 1) {
|
} else if (rowData['group_count'] > 1) {
|
||||||
|
@ -203,7 +205,7 @@ history_table_options = {
|
||||||
"targets": [9],
|
"targets": [9],
|
||||||
"data":"stopped",
|
"data":"stopped",
|
||||||
"createdCell": function (td, cellData, rowData, row, col) {
|
"createdCell": function (td, cellData, rowData, row, col) {
|
||||||
if (cellData === null || rowData['state'] != null) {
|
if (cellData === null || rowData['state'] != "stopped") {
|
||||||
$(td).html('n/a');
|
$(td).html('n/a');
|
||||||
} else {
|
} else {
|
||||||
$(td).html(moment(cellData,"X").format(time_format));
|
$(td).html(moment(cellData,"X").format(time_format));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue