{{- $reward := .Reward -}} {{- $id := .Id -}} {{- $author := .Author -}} {{- if $reward.enable -}}
{{ $reward.comment }}
{{- range $way, $image := $reward.ways -}} {{- with T (printf "single.reward.%v" $way) -}}{{ $way = . }}{{- end -}} {{- if $image -}}
{{- dict "Src" $image "Alt" (printf "%v %v" $author $way) "Resources" $.Resources | partial "plugin/image.html" -}} {{ $way }}
{{- end -}} {{- end -}}
{{- end -}}