mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Quater values for History Watch Status (#2179)
* initial release * change fillup orientation to clockwise * fix indentation for css * fix 50 percent circle orientation * optimize colors and padding
This commit is contained in:
parent
1e4fc05ecf
commit
a31dcb5508
3 changed files with 92 additions and 58 deletions
|
@ -263,13 +263,17 @@ history_table_options = {
|
|||
"targets": [12],
|
||||
"data": "watched_status",
|
||||
"createdCell": function (td, cellData, rowData, row, col) {
|
||||
var circleValue = "";
|
||||
if (cellData == 1) {
|
||||
$(td).html('<span class="watched-tooltip" data-toggle="tooltip" title="' + rowData['percent_complete'] + '%"><i class="fa fa-lg fa-circle"></i></span>');
|
||||
circleValue = " circle-full";
|
||||
} else if (cellData == 0.75) {
|
||||
circleValue = " circle-three-quarter";
|
||||
} else if (cellData == 0.5) {
|
||||
$(td).html('<span class="watched-tooltip" data-toggle="tooltip" title="' + rowData['percent_complete'] + '%"><i class="fa fa-lg fa-adjust fa-rotate-180"></i></span>');
|
||||
} else {
|
||||
$(td).html('<span class="watched-tooltip" data-toggle="tooltip" title="' + rowData['percent_complete'] + '%"><i class="fa fa-lg fa-circle-o"></i></span>');
|
||||
circleValue = " circle-half";
|
||||
} else if (cellData == 0.25) {
|
||||
circleValue = " circle-quarter";
|
||||
}
|
||||
$(td).html('<span class="watched-tooltip" data-toggle="tooltip" title="' + rowData['percent_complete'] + '%"><div class="circle' + circleValue + '" /></span>');
|
||||
},
|
||||
"searchable": false,
|
||||
"orderable": false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue