Kaynağa Gözat

Nicer Region score formatting in report

jmacura 5 yıl önce
ebeveyn
işleme
1c4691d5a7
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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)};