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>
</thead>
<tbody>
{{range $suiter := .Attendies }}
{{if not $suiter.OnWaitingList }}
{{range $attendie := .Attendies }}
{{if not $attendie.OnWaitingList }}
<tr>
<td>{{ $suiter.Nickname }}</td>
{{ if $suiter.AttendsRestaurant }}
<td>{{ $attendie.Nickname }}</td>
{{ if $attendie.AttendsRestaurant }}
<td class="tdgreen">✓ {{ $.Locals.Yes }}</td>
{{ else }}
<td class="tdred">❌ {{ $.Locals.No }}</td>
{{ end }}
{{ if $suiter.AttendsBar }}
{{ if $attendie.AttendsBar }}
<td class="tdgreen">✓ {{ $.Locals.Yes }}</td>
{{ else }}
<td class="tdred">❌ {{ $.Locals.No }}</td>
@ -29,4 +29,21 @@
{{end}}
</tbody>
</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}}

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",
Other: "AfterParties",
},
{
ID: "Event",
One: "Event",
Other: "Events",
},
}

View file

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

View file

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