From: Laurence Maultsby Date: Wed, 19 Oct 2016 01:02:50 +0000 (-0400) Subject: RIFT-14850: Volume styling update X-Git-Tag: v1.1.0~35 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=573c1249edf74aa6cc50af1f92fd38832149d3eb;p=osm%2FUI.git RIFT-14850: Volume styling update Signed-off-by: Laurence Maultsby --- 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 + } +
    ) }) }