diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css
index 15c0008dbe..56a8ace8f3 100644
--- a/dashboard-ui/css/librarybrowser.css
+++ b/dashboard-ui/css/librarybrowser.css
@@ -866,18 +866,21 @@ a.itemTag:hover {
}
.mediaInfoStreamType {
- display: block;
font-size: 16px;
color: #fff;
}
.mediaInfoAttribute {
color: #fff;
+ display: inline-block;
+ width: 110px;
}
.mediaInfoLabel {
color: #aaa;
margin-right: 1em;
+ display: inline-block;
+ width: 90px;
}
.posterRibbon {
diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js
index 7cc4d85f98..1caa917e6a 100644
--- a/dashboard-ui/scripts/itemdetailpage.js
+++ b/dashboard-ui/scripts/itemdetailpage.js
@@ -1088,66 +1088,66 @@
html += '
';
- html += '
' + type + '';
+ html += '
' + type + '
';
var attributes = [];
if (stream.Language && stream.Type != "Video") {
- attributes.push('
Language' + stream.Language + '');
+ attributes.push(createAttribute("Language", stream.Language));
}
if (stream.Codec && stream.Codec != "dca") {
- attributes.push('
Codec' + stream.Codec.toUpperCase() + '');
+ attributes.push(createAttribute("Codec", stream.Codec.toUpperCase()));
}
if (stream.Profile && stream.Codec == "dca") {
- attributes.push('
Codec' + stream.Profile.toUpperCase() + '');
+ attributes.push(createAttribute("Codec", stream.Profile.toUpperCase()));
}
else if (stream.Profile) {
- attributes.push('
Profile' + stream.Profile + '');
+ attributes.push(createAttribute("Profile", stream.Profile));
}
if (stream.Level) {
- attributes.push('
Level' + stream.Level + '');
+ attributes.push(createAttribute("Level", stream.Level));
}
if (stream.Width || stream.Height) {
- attributes.push('
Resolution' + stream.Width + 'x' + stream.Height + '');
+ attributes.push(createAttribute("Resolution", stream.Width + 'x' + stream.Height));
}
if (stream.AspectRatio && stream.Codec != "mjpeg") {
- attributes.push('
Aspect Ratio' + stream.AspectRatio + '');
+ attributes.push(createAttribute("Aspect Ratio", stream.AspectRatio));
}
if (type == "Video") {
- attributes.push('
Interlaced' + (stream.IsInterlaced ? 'Yes' : 'No') + '');
+ attributes.push(createAttribute("Interlaced", (stream.IsInterlaced ? 'Yes' : 'No')));
}
if (stream.AverageFrameRate || stream.RealFrameRate) {
- attributes.push('
Framerate' + (stream.AverageFrameRate || stream.RealFrameRate) + '');
+ attributes.push(createAttribute("Framerate", (stream.AverageFrameRate || stream.RealFrameRate)));
}
if (stream.ChannelLayout) {
- attributes.push('
Layout' + stream.ChannelLayout + '');
+ attributes.push(createAttribute("Layout", stream.ChannelLayout));
}
else if (stream.Channels) {
- attributes.push('
Channels' + stream.Channels + ' ch');
+ attributes.push(createAttribute("Channels", stream.Channels + ' ch'));
}
if (stream.BitRate && stream.Codec != "mjpeg") {
- attributes.push('
Bitrate' + (parseInt(stream.BitRate / 1000)) + ' kbps');
+ attributes.push(createAttribute("Bitrate", (parseInt(stream.BitRate / 1000)) + ' kbps'));
}
if (stream.SampleRate) {
- attributes.push('
Sample Rate' + stream.SampleRate + ' khz');
+ attributes.push(createAttribute("Sample Rate", stream.SampleRate + ' khz'));
}
if (stream.Type != "Video") {
- attributes.push('
Default' + (stream.IsDefault ? 'Yes' : 'No') + '');
+ attributes.push(createAttribute("Default", (stream.IsDefault ? 'Yes' : 'No')));
}
if (stream.Type == "Subtitle") {
- attributes.push('
Forced' + (stream.IsForced ? 'Yes' : 'No') + '');
- attributes.push('
External' + (stream.IsExternal ? 'Yes' : 'No') + '');
+ attributes.push(createAttribute("Forced", (stream.IsForced ? 'Yes' : 'No')));
+ attributes.push(createAttribute("External", (stream.IsExternal ? 'Yes' : 'No')));
}
html += attributes.join('
');
@@ -1158,6 +1158,10 @@
$('#mediaInfoContent', page).html(html).trigger('create');
}
+ function createAttribute(label, value) {
+ return '
' + label + '' + value + ''
+ }
+
function getVideosHtml(items, user, limit, moreButtonClass) {
var html = '';