Add ui with new translations
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Nikurasu 2024-06-14 01:27:45 +02:00
parent 1d20377ee6
commit 95e64b8ded
Signed by: Nikurasu
GPG key ID: 9E7F14C03EF1F271
5 changed files with 67 additions and 5 deletions

View file

@ -10,16 +10,16 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{{range $suiter := .Attendies }} {{range $attendie := .Attendies }}
{{if not $suiter.OnWaitingList }} {{if not $attendie.OnWaitingList }}
<tr> <tr>
<td>{{ $suiter.Nickname }}</td> <td>{{ $attendie.Nickname }}</td>
{{ if $suiter.AttendsRestaurant }} {{ if $attendie.AttendsRestaurant }}
<td class="tdgreen">✓ {{ $.Locals.Yes }}</td> <td class="tdgreen">✓ {{ $.Locals.Yes }}</td>
{{ else }} {{ else }}
<td class="tdred">❌ {{ $.Locals.No }}</td> <td class="tdred">❌ {{ $.Locals.No }}</td>
{{ end }} {{ end }}
{{ if $suiter.AttendsBar }} {{ if $attendie.AttendsBar }}
<td class="tdgreen">✓ {{ $.Locals.Yes }}</td> <td class="tdgreen">✓ {{ $.Locals.Yes }}</td>
{{ else }} {{ else }}
<td class="tdred">❌ {{ $.Locals.No }}</td> <td class="tdred">❌ {{ $.Locals.No }}</td>
@ -29,4 +29,21 @@
{{end}} {{end}}
</tbody> </tbody>
</table> </table>
<h2 class="textWhite">{{ .Locals.SuiterWaitinglist }}</h2>
<table>
<thead>
<tr>
<th>{{ .Locals.Name }}</th>
</tr>
</thead>
<tbody>
{{range $attendie := .Attendies }}
{{if $attendie.OnWaitingList }}
<tr>
<td>{{ $attendie.Nickname }}</td>
</tr>
{{end}}
{{end}}
</tbody>
</table>
{{end}} {{end}}

View file

@ -0,0 +1,31 @@
<h1 class="textWhite">{{ .EventName }} {{ .Locals.Attendie }}</h1>
<h2 class="textWhite">{{ .Locals.Registered }}</h2>
<table>
<thead>
<tr class="tableHeading">
<th>{{ .Locals.Name }}</th>
<th>{{ .Locals.Restaurant }}</th>
<th>{{ .Locals.Event }}</th>
</tr>
</thead>
<tbody>
{{range $attendie := .Attendies }}
{{if not $attendie.OnWaitingList }}
<tr>
<td>{{ $attendie.Nickname }}</td>
{{ if $attendie.AttendsRestaurant }}
<td class="tdgreen">✓ {{ $.Locals.Yes }}</td>
{{ else }}
<td class="tdred">❌ {{ $.Locals.No }}</td>
{{ end }}
{{ if $attendie.AttendsEvent }}
<td class="tdgreen">✓ {{ $.Locals.Yes }}</td>
{{ else }}
<td class="tdred">❌ {{ $.Locals.No }}</td>
{{ end }}
</tr>
{{end}}
{{end}}
</tbody>
</table>
{{end}}

View file

@ -94,4 +94,9 @@ var defaultMessages = []i18n.Message{
One: "AfterParty", One: "AfterParty",
Other: "AfterParties", Other: "AfterParties",
}, },
{
ID: "Event",
One: "Event",
Other: "Events",
},
} }

View file

@ -9,6 +9,11 @@
"one": "Teilnehmer*in", "one": "Teilnehmer*in",
"other": "Teilnehmende" "other": "Teilnehmende"
}, },
"Event": {
"hash": "sha1-c5497bca58468ae64aed6c0fd921109217988db3",
"one": "Event",
"other": "Events"
},
"Guest": { "Guest": {
"hash": "sha1-7b7f214bbd4af36f25668b0ddade965422d342fd", "hash": "sha1-7b7f214bbd4af36f25668b0ddade965422d342fd",
"one": "Gast", "one": "Gast",

View file

@ -7,6 +7,10 @@
"one": "Attendie", "one": "Attendie",
"other": "Attendies" "other": "Attendies"
}, },
"Event": {
"one": "Event",
"other": "Events"
},
"Guest": { "Guest": {
"one": "Guest", "one": "Guest",
"other": "Guets" "other": "Guets"