{{ define "labels/fragments/label" }} {{ $d := .def }} {{ $v := .val }} {{ template "repo/fragments/colorBall" (dict "color" $d.GetColor) }} {{ $d.Name }}{{ if not $d.ValueType.IsNull }}/{{ template "labelVal" (dict "def" $d "val" $v) }}{{ end }} {{ end }} {{ define "labelVal" }} {{ $d := .def }} {{ $v := .val }} {{ if $d.ValueType.IsDidFormat }} {{ resolve $v }} {{ else }} {{ $v }} {{ end }} {{ end }}