From 69b9c9c379af949597f159ef998aef33ea97fb7a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 25 Apr 2013 21:52:29 -0400 Subject: [PATCH] add artist links on song page --- dashboard-ui/css/posteritem.css | 10 +++++++--- dashboard-ui/itemdetails.html | 1 + dashboard-ui/plugincatalog.html | 6 +++--- dashboard-ui/scripts/Itemdetailpage.js | 11 +++++++++++ 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/dashboard-ui/css/posteritem.css b/dashboard-ui/css/posteritem.css index f5ff42df2b..ac6191c795 100644 --- a/dashboard-ui/css/posteritem.css +++ b/dashboard-ui/css/posteritem.css @@ -78,7 +78,8 @@ } -@media all and (min-width: 750px) { + +@media all and (min-width: 650px) { .backdropPosterItem { width: 192px; @@ -87,6 +88,9 @@ .backdropPosterItem .posterItemImage { height: 108px; } +} + +@media all and (min-width: 750px) { .squarePosterItem { width: 160px; @@ -158,11 +162,11 @@ @media all and (min-width: 1920px) { .backdropPosterItem { - width: 304px; + width: 320px; } .backdropPosterItem .posterItemImage { - height: 171px; + height: 180px; } .squarePosterItem { diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html index 030e174898..b8aab4258f 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -103,6 +103,7 @@
+

diff --git a/dashboard-ui/plugincatalog.html b/dashboard-ui/plugincatalog.html index 76b2e108da..366a675618 100644 --- a/dashboard-ui/plugincatalog.html +++ b/dashboard-ui/plugincatalog.html @@ -20,17 +20,17 @@
No available plugins
-
+

MB Server

-
+

MB Theater

-
+

MB Classic

diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js index 10cbec9483..9263b0f0c5 100644 --- a/dashboard-ui/scripts/Itemdetailpage.js +++ b/dashboard-ui/scripts/Itemdetailpage.js @@ -29,6 +29,13 @@ $('#itemName', page).html(name); + if (item.AlbumArtist && item.Type == "Audio") { + $('#albumArtist', page).html('' + item.AlbumArtist + '').show().trigger('create'); + } + else { + $('#albumArtist', page).hide(); + } + if (item.SeriesName) { $('#seriesName', page).html('' + item.SeriesName + '').show().trigger('create'); @@ -36,6 +43,10 @@ else if (item.Album && item.Type == "Audio" && item.ParentId) { $('#seriesName', page).html('' + item.Album + '').show().trigger('create'); + } + else if (item.AlbumArtist && item.Type == "MusicAlbum") { + $('#seriesName', page).html('' + item.AlbumArtist + '').show().trigger('create'); + } else if (item.Album) { $('#seriesName', page).html(item.Album).show();