23 lines
453 B
Smarty
23 lines
453 B
Smarty
{{ define "vehicle-identify" }}
|
|
{{- if or .mode .minCurrent .maxCurrent .priority }}
|
|
onIdentify:
|
|
{{- if .mode }}
|
|
mode: {{ .mode }}
|
|
{{- end }}
|
|
{{- if .minCurrent }}
|
|
minCurrent: {{ .minCurrent }}
|
|
{{- end }}
|
|
{{- if .maxCurrent }}
|
|
maxCurrent: {{ .maxCurrent }}
|
|
{{- end }}
|
|
{{- if .priority }}
|
|
priority: {{ .priority }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if len .identifiers }}
|
|
identifiers:
|
|
{{- range .identifiers }}
|
|
- {{ . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|