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
|
@ -203,7 +203,11 @@
|
|||
|
||||
html += '</div>';
|
||||
|
||||
html += LibraryBrowser.getNewIndicatorHtml(item);
|
||||
if (item.LocationType == "Offline") {
|
||||
html += LibraryBrowser.getOfflineIndicatorHtml(item);
|
||||
} else {
|
||||
html += LibraryBrowser.getNewIndicatorHtml(item);
|
||||
}
|
||||
|
||||
html += "</a>";
|
||||
}
|
||||
|
@ -564,7 +568,9 @@
|
|||
html += "</div>";
|
||||
}
|
||||
|
||||
if (options.showNewIndicator !== false) {
|
||||
if (item.LocationType == "Offline") {
|
||||
html += LibraryBrowser.getOfflineIndicatorHtml(item);
|
||||
} else if (options.showNewIndicator !== false) {
|
||||
html += LibraryBrowser.getNewIndicatorHtml(item);
|
||||
}
|
||||
|
||||
|
@ -605,6 +611,10 @@
|
|||
return name;
|
||||
},
|
||||
|
||||
getOfflineIndicatorHtml: function () {
|
||||
|
||||
return '<div class="posterRibbon offlinePosterRibbon">Offline</div>';
|
||||
},
|
||||
getNewIndicatorHtml: function (item) {
|
||||
|
||||
if (item.RecentlyAddedItemCount) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue