mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
improve offline support and add a web client indicator
This commit is contained in:
parent
8108fdfe4c
commit
8062c8c011
@ -641,6 +641,10 @@ a.itemTag:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.offlinePosterRibbon {
|
||||
background-color: #cc3333;
|
||||
}
|
||||
|
||||
.itemProgress {
|
||||
vertical-align: top;
|
||||
font-size: 19px;
|
||||
|
@ -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…
Reference in New Issue
Block a user