diff --git a/ApiClient.js b/ApiClient.js index d8a1c45ce6..2b282e5e42 100644 --- a/ApiClient.js +++ b/ApiClient.js @@ -197,6 +197,19 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi return webSocket && (webSocket.readyState === WebSocket.OPEN || webSocket.readyState === WebSocket.CONNECTING); }; + self.getProductNews = function (options) { + + options = options || {}; + + var url = self.getUrl("News/Product", options); + + return self.ajax({ + type: "GET", + url: url, + dataType: "json" + }); + }; + /** * Gets an item from the server * Omit itemId to get the root folder. diff --git a/dashboard-ui/css/site.css b/dashboard-ui/css/site.css index 680ad528f7..2ef2ee45e3 100644 --- a/dashboard-ui/css/site.css +++ b/dashboard-ui/css/site.css @@ -327,7 +327,7 @@ h1 .imageLink { } .appLinks img { - height: 32px; + height: 30px; } @media all and (min-width: 450px) { @@ -780,3 +780,63 @@ progress { #editItemMetadataPage #txtOverview { height: 70px; } + + +.latestNewsItems { + min-height: 100px; + min-width: 200px; +} + +.newsItem { + padding: 1em 0; + border-bottom: 1px solid #ddd; +} + +.newsItemDescription { + max-height: 50px; + text-overflow: ellipsis; + overflow: hidden; +} + +.newsItemHeader { + font-size: 15px; + text-decoration: none !important; +} + +@media all and (max-width: 1440px) { + + .dashboardHomeRightColumn { + margin-top: 3em; + } +} + +.dashboardContent { + max-width: 1000px; +} + +@media all and (min-width: 1440px) { + + .dashboardHomeLeftColumn { + width: 600px; + float: left; + } + + .latestNewsItems { + max-width: 300px; + } + + .dashboardHomeRightColumn { + float: right; + } +} + +@media all and (min-width: 1600px) { + + .latestNewsItems { + max-width: 400px; + } + + .dashboardContent { + max-width: 1100px; + } +} \ No newline at end of file diff --git a/dashboard-ui/dashboard.html b/dashboard-ui/dashboard.html index 5bcece4c5a..1c339b5c49 100644 --- a/dashboard-ui/dashboard.html +++ b/dashboard-ui/dashboard.html @@ -13,102 +13,119 @@ Info -
+
+
-
-

Server Information

-
-

- Version -

- -