blob: c94d7170d6bdb6a609e571aa5f83ebfbb7e8a1c9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{{- if .Get "text" }}
{{- if .Get "alt" }}
{{- partial "flag.html" (dict "code" ( .Get "code" ) "text" ( .Get "text" ) "alt" ( .Get "alt" )) }}
{{- else }}
{{- partial "flag.html" (dict "code" ( .Get "code" ) "text" ( .Get "text" ) ) }}
{{- end }}
{{- else }}
{{- if .Get "alt" }}
{{- partial "flag.html" (dict "code" ( .Get "code" ) "alt" ( .Get "alt" )) }}
{{- else }}
{{- partial "flag.html" (dict "code" ( .Get "code" )) }}
{{- end }}
{{- end }}
|