{{/* HeatMeterTile This partial visualizes a value to it's max value in a small tile. Inputs are following items: two number values "value" and "max" and integer "precision" and "unit" for printing the value, "color". @return - */}} {{ $x := 0 }} {{ if gt .max 0 }} {{ $x = mul ( div 100.0 (float .max ) ) (float .value ) }} {{ else }} {{ $x = 0 }} {{ end }} {{ $output := partial "func/NumberFormatter.html" ( dict "number" .value "precision" .precision ) }} {{ $output }}{{ .unit }}