diff --git a/ApiClient.js b/ApiClient.js index 999a7d9180..17f70a1d97 100644 --- a/ApiClient.js +++ b/ApiClient.js @@ -838,6 +838,32 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) { }); }; + self.getCriticReviews = function (itemId, options) { + + if (!itemId) { + throw new Error("null itemId"); + } + + var url = self.getUrl("Items/" + itemId + "/CriticReviews", options); + + return self.ajax({ + type: "GET", + url: url, + dataType: "json" + }); + }; + + self.getSessions = function (options) { + + var url = self.getUrl("Sessions", options); + + return self.ajax({ + type: "GET", + url: url, + dataType: "json" + }); + }; + /** * Uploads a user image * @param {String} userId diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 471d648a2a..a53c928676 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -150,6 +150,42 @@ margin: 0 5px 5px 0; } +.criticReview { + font-size: 14px; + margin: 1.5em 0; + background: #222; + padding: .8em .8em .8em 55px; + border-radius: 5px; + position: relative; +} + + .criticReview:first-child { + margin-top: .5em; + } + + .criticReview img { + width: 30px; + } + +.reviewerName { + color: #ccc; + font-size: 13px; + margin-top: .5em; +} + +.reviewLink { + margin-top: .5em; +} + +.reviewDate { + margin-left: 1em; +} + +.reviewScore { + position: absolute; + left: .8em; +} + @media all and (min-width: 750px) { diff --git a/dashboard-ui/css/site.css b/dashboard-ui/css/site.css index 3b4b6fc41d..4ce3bcee53 100644 --- a/dashboard-ui/css/site.css +++ b/dashboard-ui/css/site.css @@ -34,6 +34,14 @@ body { overflow-y: scroll!important; } +.textlink { + text-decoration: none; +} + + .textlink:hover { + text-decoration: underline; + } + h1 { font-family: 'Segoe UI Light', 'Open Sans', Arial, Helvetica, sans-serif; font-weight: 200; @@ -640,7 +648,8 @@ progress { /* Firefox */ progress::-moz-progress-bar { border-radius: 5px; - background-image: -moz-linear-gradient( center bottom, rgb(43,194,83) 37%, rgb(84,240,84) 69% );s + background-image: -moz-linear-gradient( center bottom, rgb(43,194,83) 37%, rgb(84,240,84) 69% ); + s; } /* Chrome */ @@ -910,9 +919,9 @@ progress { background: url("images/media/language.png") !important; height: 16px; width: 16px; - background-size: cover!important; + background-size: cover!important; opacity: 0.5; - margin: .2em; + margin: .2em; } #videoWindow.tubecss .vjs-menu-button.vjs-language-button div:hover { @@ -920,12 +929,12 @@ progress { } #videoWindow.tubecss .vjs-menu-button.vjs-subtitle-button div { - margin: .2em 0px; + margin: .2em 0px; } -#videoWindow.tubecss .vjs-menu-button.vjs-subtitle-button div:hover { - opacity: 1.0; -} + #videoWindow.tubecss .vjs-menu-button.vjs-subtitle-button div:hover { + opacity: 1.0; + } .vjs-language-button.vjs-menu-button ul { width: auto; @@ -943,7 +952,7 @@ progress { #videoWindow.tubecss .vjs-mute-control { position: absolute; - left: 5.5em; + left: 5.5em; } #videoWindow.tubecss .vjs-volume-control { @@ -963,7 +972,7 @@ progress { #videoWindow.tubecss .vjs-time-divider { bottom: 0.4em; left: 25.3em; - display: none; + display: none; } #videoWindow.tubecss .vjs-menu-item { @@ -972,16 +981,16 @@ progress { #videoWindow.tubecss .vjs-current-time { left: .1em; - top: -2em; - z-index: 2; + top: -2em; + z-index: 2; } #videoWindow.tubecss .vjs-duration { right: .1em; - text-align:right; - z-index: 2; + text-align: right; + z-index: 2; } #videoWindow.tubecss .vjs-progress-holder { - margin: 0 5em; -} \ No newline at end of file + margin: 0 5em; +} diff --git a/dashboard-ui/itemdetails.html b/dashboard-ui/itemdetails.html index 96b7f14a07..67ef627b66 100644 --- a/dashboard-ui/itemdetails.html +++ b/dashboard-ui/itemdetails.html @@ -101,6 +101,9 @@ + + + @@ -177,6 +180,12 @@
+
+ +
'; - return html; - }, - - createCastImage: function (cast, context) { - - var html = ''; - - html += ''; - - var imgUrl; - - if (cast.PrimaryImageTag) { - - imgUrl = ApiClient.getPersonImageUrl(cast.Name, { - width: 130, - tag: cast.PrimaryImageTag, - type: "primary" - }); - - } else { - - imgUrl = "css/images/items/list/person.png"; - } - - html += '
'; - - - - html += '
'; - - html += '

' + cast.Name + '

'; - - var role = cast.Role ? "as " + cast.Role : cast.Type; - - html += '

' + (role || "") + '

'; - - html += '
'; - - html += '
'; - return html; } diff --git a/packages.config b/packages.config index be16737802..d1529864bb 100644 --- a/packages.config +++ b/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file