mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
improve offline support and add a web client indicator
This commit is contained in:
parent
8108fdfe4c
commit
8062c8c011
2 changed files with 16 additions and 2 deletions
|
@ -641,6 +641,10 @@ a.itemTag:hover {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.offlinePosterRibbon {
|
||||||
|
background-color: #cc3333;
|
||||||
|
}
|
||||||
|
|
||||||
.itemProgress {
|
.itemProgress {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
font-size: 19px;
|
font-size: 19px;
|
||||||
|
|
|
@ -203,7 +203,11 @@
|
||||||
|
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
||||||
html += LibraryBrowser.getNewIndicatorHtml(item);
|
if (item.LocationType == "Offline") {
|
||||||
|
html += LibraryBrowser.getOfflineIndicatorHtml(item);
|
||||||
|
} else {
|
||||||
|
html += LibraryBrowser.getNewIndicatorHtml(item);
|
||||||
|
}
|
||||||
|
|
||||||
html += "</a>";
|
html += "</a>";
|
||||||
}
|
}
|
||||||
|
@ -564,7 +568,9 @@
|
||||||
html += "</div>";
|
html += "</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.showNewIndicator !== false) {
|
if (item.LocationType == "Offline") {
|
||||||
|
html += LibraryBrowser.getOfflineIndicatorHtml(item);
|
||||||
|
} else if (options.showNewIndicator !== false) {
|
||||||
html += LibraryBrowser.getNewIndicatorHtml(item);
|
html += LibraryBrowser.getNewIndicatorHtml(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -605,6 +611,10 @@
|
||||||
return name;
|
return name;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getOfflineIndicatorHtml: function () {
|
||||||
|
|
||||||
|
return '<div class="posterRibbon offlinePosterRibbon">Offline</div>';
|
||||||
|
},
|
||||||
getNewIndicatorHtml: function (item) {
|
getNewIndicatorHtml: function (item) {
|
||||||
|
|
||||||
if (item.RecentlyAddedItemCount) {
|
if (item.RecentlyAddedItemCount) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue