From 39eb56793aa25220b63709e4234bffc5cd8fd360 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 24 Apr 2014 22:45:06 -0400 Subject: [PATCH] display timestamp info --- dashboard-ui/scripts/itemdetailpage.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js index 0dfc1524f..1eb4c9a21 100644 --- a/dashboard-ui/scripts/itemdetailpage.js +++ b/dashboard-ui/scripts/itemdetailpage.js @@ -1149,19 +1149,15 @@ attributes.push(createAttribute("External", (stream.IsExternal ? 'Yes' : 'No'))); } + if (stream.Type == "Video" && version.Timestamp) { + attributes.push(createAttribute("Timestamp", version.Timestamp)); + } + html += attributes.join('
'); html += ''; } - if (version.Container) { - html += '
Container' + version.Container + '
'; - } - - if (version.Formats && version.Formats.length) { - html += '
Format' + version.Formats.join(',') + '
'; - } - if (version.Size) { var size = (version.Size / (1024 * 1024)).toFixed(0); @@ -1173,6 +1169,14 @@ html += '
Path' + version.Path + '
'; } + if (version.Container) { + //html += '
Container' + version.Container + '
'; + } + + if (version.Formats && version.Formats.length) { + //html += '
Format' + version.Formats.join(',') + '
'; + } + return html; }