From 573c1249edf74aa6cc50af1f92fd38832149d3eb Mon Sep 17 00:00:00 2001 From: Laurence Maultsby Date: Tue, 18 Oct 2016 21:02:50 -0400 Subject: [PATCH 1/1] RIFT-14850: Volume styling update Signed-off-by: Laurence Maultsby --- .../launchpad/src/recordViewer/recordCard.jsx | 30 +++++++++++++++---- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx index a57770629..737ef701d 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx +++ b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx @@ -134,12 +134,32 @@ export default class RecordCard extends React.Component { notice =
  • * If a separate browser window does not open, please check if the popup was blocked and allow it.
  • if(vdur.hasOwnProperty('volumes') && (vdur.volumes.length > 0)) { displayVolumesTab = true; - vdur.volumes.map((volume, vi) => { - let html = Prism.highlight(JSON.stringify(volume), Prism.languages.javascript, 'javascript'); + vdur.volumer.map((volume, vi) => { + // let html = Prism.highlight(JSON.stringify(volume), Prism.languages.javascript, 'javascript'); + // volumesHTML.push( + //
    +                //       
    +                //     
    + let properties = []; + _.forEach(volume, function(v, k) { + properties.push( +
    +
    {k}
    +
    {v}
    +
    + ) + }) volumesHTML.push( -
    -                      
    -                    
    +
    +
    + VOLUME +
    + + { + properties + } +
    ) }) } -- 2.17.1