diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index d2b0f722f2..06eb0379f3 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -148,3 +148,25 @@ max-width: 1000px; } } + +.mediaInfoStream { + display: inline-block; + vertical-align: top; + margin-right: 2em; +} + +.mediaInfoStreamType { + border-bottom: 1px solid #555; + padding-bottom: 5px; + margin-bottom: .5em; + font-weight: bold; +} + +.mediaInfoDetails { + margin: 0 0 0 2em; + padding: 0; +} + +.mediaInfoLabel { + color: #bbb; +} diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js index 1591128fcf..e913c370b5 100644 --- a/dashboard-ui/scripts/Itemdetailpage.js +++ b/dashboard-ui/scripts/Itemdetailpage.js @@ -89,7 +89,7 @@ } ItemDetailPage.renderFav(item); - LibraryBrowser.renderLinks(item); + LibraryBrowser.renderLinks(item); Dashboard.hideLoadingMsg(); }, @@ -456,21 +456,6 @@ var page = $.mobile.activePage; var html = ''; - var hasVideo = false; - var hasLanguage = false; - - html += '
Type | '; - html += 'Codec | '; - html += 'Language | '; - html += 'Resolution | '; - html += 'Channels | '; - html += 'Bitrate | '; - html += 'Framerate | '; - html += 'Flags | '; - html += '||||
---|---|---|---|---|---|---|---|---|---|---|---|
' + type + ' | '; - html += '' + stream.Codec + ' | '; + html += '' + stream.Language + ' | '; - } else html += ''; - - if (stream.Type == "Video") { - html += ' | ' + stream.Width + '/' + stream.Height + ' (' + stream.AspectRatio + ') | '; - } else { - html += ''; + html += ' | ' + stream.Channels + 'ch ' + stream.SampleRate + ' khz | '; - } else { - html += ''; + html += ' | ' + stream.BitRate + ' | '; + html += '' + framerate + ' | '; - } else { - html += ''; - } - - var notes = new Array(); - if (stream.IsExternal) notes.push("external file"); - if (stream.IsDefault) notes.push("Default"); - if (stream.IsForced) notes.push("Forced"); - - html += ' | ' + notes.join(', ') + ' | '; - - html += '