mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added recording progress bars
This commit is contained in:
parent
32386e817b
commit
e3b57e4c97
2 changed files with 22 additions and 4 deletions
|
@ -925,6 +925,18 @@ a.itemTag:hover {
|
|||
background-color: #52B54B;
|
||||
}
|
||||
|
||||
.recordingProgressBar::-moz-progress-bar {
|
||||
background-color: #cc3333;
|
||||
}
|
||||
|
||||
.recordingProgressBar::-webkit-progress-value {
|
||||
background-color: #cc3333;
|
||||
}
|
||||
|
||||
.recordingProgressBar[aria-valuenow]:before {
|
||||
background-color: #cc3333;
|
||||
}
|
||||
|
||||
.userDataIcons .itemProgressBar {
|
||||
vertical-align: top;
|
||||
position: relative;
|
||||
|
|
|
@ -1532,6 +1532,12 @@
|
|||
|
||||
getItemProgressBarHtml: function (item) {
|
||||
|
||||
|
||||
if (item.Type == "Recording" && item.CompletionPercentage) {
|
||||
|
||||
return '<progress class="itemProgressBar recordingProgressBar" min="0" max="100" value="' + item.CompletionPercentage + '"></progress>';
|
||||
}
|
||||
|
||||
if (item.UserData && item.UserData.PlaybackPositionTicks && item.RunTimeTicks) {
|
||||
|
||||
var tooltip = Dashboard.getDisplayTime(item.UserData.PlaybackPositionTicks) + " / " + Dashboard.getDisplayTime(item.RunTimeTicks);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue