diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 40598357fb..b4b403e651 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -175,3 +175,14 @@ .mediaInfoLabel { color: #bbb; } + +.posterRibbon { + display: block; + position: absolute; + top: 0; + right: 0; + text-align: center; + background-color: #008FBB; + padding: 3px 10px; + border-bottom-left-radius: 10px; +} diff --git a/dashboard-ui/css/site.css b/dashboard-ui/css/site.css index a81cd7085f..8d28c42a8a 100644 --- a/dashboard-ui/css/site.css +++ b/dashboard-ui/css/site.css @@ -407,7 +407,7 @@ form, .readOnlyContent { display: inline-block; margin: 5px; text-align: center; - font-size: 15px; + font-size: 14px; padding: 0; position: relative; padding-bottom: 28px; diff --git a/dashboard-ui/scripts/boxsets.js b/dashboard-ui/scripts/boxsets.js index 28ab752e3a..adbc6bd726 100644 --- a/dashboard-ui/scripts/boxsets.js +++ b/dashboard-ui/scripts/boxsets.js @@ -7,7 +7,7 @@ SortOrder: "Ascending", IncludeItemTypes: "BoxSet", Recursive: true, - Fields: "PrimaryImageAspectRatio,ItemCounts" + Fields: "PrimaryImageAspectRatio,ItemCounts,ItemCounts,DateCreated" }; diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 7a82a8732d..a8cd2afae4 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -1,13 +1,13 @@ var LibraryBrowser = { - getDetaultPageSize: function() { + getDetaultPageSize: function () { if (window.location.toString().toLowerCase().indexOf('localhost') != -1) { return 100; } return 25; }, - + getPosterViewHtml: function (options) { var items = options.items; @@ -35,7 +35,7 @@ height: 198, width: 352, tag: item.BackdropImageTags[0] - + }) + "' />"; } else if (hasPrimaryImage) { @@ -47,7 +47,7 @@ height: height, width: width, tag: item.ImageTags.Primary - + }) + "' />"; } else if (item.BackdropImageTags && item.BackdropImageTags.length) { @@ -56,7 +56,7 @@ height: 198, width: 352, tag: item.BackdropImageTags[0] - + }) + "' />"; } else if (item.MediaType == "Audio" || item.Type == "MusicAlbum" || item.Type == "MusicArtist") { @@ -78,6 +78,10 @@ html += ""; } + if (options.showNewIndicator !== false) { + html += LibraryBrowser.getNewIndicatorHtml(item); + } + html += ""; } @@ -153,6 +157,10 @@ html += ""; } + if (options.showNewIndicator !== false) { + html += LibraryBrowser.getNewIndicatorHtml(item); + } + html += ""; } @@ -220,12 +228,34 @@ html += ""; } + if (options.showNewIndicator !== false) { + html += LibraryBrowser.getNewIndicatorHtml(item); + } + html += ""; } return html; }, + getNewIndicatorHtml: function (item) { + + if (item.RecentlyAddedItemCount) { + return '