improve offline support and add a web client indicator

This commit is contained in:
Luke Pulverenti 2013-07-05 12:17:32 -04:00
parent 8108fdfe4c
commit 8062c8c011
2 changed files with 16 additions and 2 deletions

View File

@ -641,6 +641,10 @@ a.itemTag:hover {
color: #fff;
}
.offlinePosterRibbon {
background-color: #cc3333;
}
.itemProgress {
vertical-align: top;
font-size: 19px;

View File

@ -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) {