diff --git a/dashboard-ui/css/posteritem.css b/dashboard-ui/css/posteritem.css index 997dc192d5..e67641470e 100644 --- a/dashboard-ui/css/posteritem.css +++ b/dashboard-ui/css/posteritem.css @@ -101,11 +101,11 @@ } .portraitPosterItem { - width: 110px; + width: 100px; } .portraitPosterItem .posterItemImage { - height: 165px; + height: 150px; } } diff --git a/dashboard-ui/scripts/gamesrecommendedpage.js b/dashboard-ui/scripts/gamesrecommendedpage.js index 3361ef868a..37f77492e1 100644 --- a/dashboard-ui/scripts/gamesrecommendedpage.js +++ b/dashboard-ui/scripts/gamesrecommendedpage.js @@ -17,15 +17,15 @@ ApiClient.getItems(Dashboard.getCurrentUserId(), options).done(function (result) { - $('#recentlyAddedItems', page).html(LibraryBrowser.getGamePosterViewHtml({ - items: result.Items, - useAverageAspectRatio: true, - showNewIndicator: false + $('#recentlyAddedItems', page).html(LibraryBrowser.getPosterViewHtml({ + items: result.Items, + useAverageAspectRatio: true, + showNewIndicator: false })); }); - var options = { + options = { SortBy: "DatePlayed", SortOrder: "Descending", @@ -38,10 +38,9 @@ ApiClient.getItems(Dashboard.getCurrentUserId(), options).done(function (result) { - $('#resumableItems', page).html(LibraryBrowser.getGamePosterViewHtml({ - items: result.Items, - useAverageAspectRatio: true, - showNewIndicator: false + $('#resumableItems', page).html(LibraryBrowser.getPosterViewHtml({ + items: result.Items, + useAverageAspectRatio: true })); }); diff --git a/dashboard-ui/scripts/itemlistpage.js b/dashboard-ui/scripts/itemlistpage.js index c01bcaf896..ddd7c01c24 100644 --- a/dashboard-ui/scripts/itemlistpage.js +++ b/dashboard-ui/scripts/itemlistpage.js @@ -62,8 +62,17 @@ ApiClient.getItem(userId, query.ParentId).done(function (item) { - $('#itemName', page).html(item.Name); + var name = item.Name; + if (item.IndexNumber != null) { + name = item.IndexNumber + " - " + name; + } + if (item.ParentIndexNumber != null) { + name = item.ParentIndexNumber + "." + name; + } + + $('#itemName', page).html(name); + Dashboard.setPageTitle(name); }); } diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index b232229fc0..087e8ace69 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -1250,75 +1250,6 @@ } }, - getGamePosterViewHtml: function (options) { - - var items = options.items; - - var primaryImageAspectRatio = options.useAverageAspectRatio ? LibraryBrowser.getAveragePrimaryImageAspectRatio(items) : null; - - var html = ""; - - for (var i = 0, length = items.length; i < length; i++) { - var item = items[i]; - - var hasPrimaryImage = item.ImageTags && item.ImageTags.Primary; - - var showText = options.showTitle || !hasPrimaryImage; - - var cssClass = showText ? "posterViewItem" : "posterViewItem posterViewItemWithNoText"; - - html += "
"; - - if (options.preferBackdrop && item.BackdropImageTags && item.BackdropImageTags.length) { - html += ""; - } else if (hasPrimaryImage) { - - var height = 300; - var width = primaryImageAspectRatio ? parseInt(height * primaryImageAspectRatio) : null; - - html += ""; - - } else if (item.BackdropImageTags && item.BackdropImageTags.length) { - html += ""; - } - else { - html += ""; - } - - if (showText) { - html += "
"; - html += item.Name; - html += "
"; - } - - if (options.showNewIndicator !== false) { - html += LibraryBrowser.getNewIndicatorHtml(item); - } - - html += "
"; - } - - return html; - }, - shouldDisplayGallery: function (item) { var imageTags = item.ImageTags || {};