Sfoglia il codice sorgente

Nicer Region score formatting in report

jmacura 5 anni fa
parent
commit
1c4691d5a7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      views/nuts.pug

+ 1 - 1
views/nuts.pug

@@ -43,7 +43,7 @@ html
           tr
             td= ds.Description
             td= ds.Factor
-            td= region[ds.Factor][ds.Name]
+            td= region[ds.Factor][ds.Name] !== undefined ? +(region[ds.Factor][ds.Name] * 100).toFixed(2) + ' %' : '--'
     
     script.
       let c = !{JSON.stringify(region.metadata.centroid)};