donations feature

This commit is contained in:
teldra 2022-04-22 11:12:59 +02:00
parent dbf2ed7439
commit 28308d6108
2 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,8 @@ other = "Eintritt"
[freeentry]
other = "Der Eintritt ist kostenlos."
[donationentry]
other = "Um Spende wird gebeten."
[register]
other = "Anmeldung"

View File

@ -7,6 +7,8 @@
{{ if .price }}
{{ if eq .price "free" }}
<div>{{ if i18n "freeentry" }}{{ i18n "freeentry" }}{{ else }}{{ "Free Entry" }}{{ end }}</div>
{{ if eq .price "donation" }}
<div>{{ if i18n "donationentry" }}{{ i18n "donationaentry }}{{ else }}{{ "Voluntary Donation" }}{{ end }}</div>
{{ else }}
<div>{{ if i18n "entry" }}{{ i18n "entry" }}{{ else }}{{ "Entry" }}{{ end }}: {{ .price }}</div>
{{ end }}