feat: template for all room participants

This commit is contained in:
efim
2023-11-16 06:22:09 +00:00
parent f8db7c14c8
commit 384afa0e00
2 changed files with 95 additions and 9 deletions

View File

@@ -82,16 +82,29 @@
<div class="border p-3">
{{ block "personBlocks" .TestPerson }}
{{ range (bricksForPerson .) }}
{{ template "brick" . }}
{{ end }}
<p>{{ .Name }}</p>
<div>
{{ range (bricksForPerson .) }}
{{ template "brick" . }}
{{ end }}
<p>{{ .Name }}</p>
</div>
{{ end }}
</div>
<h2>And now i'll want to get all persons for a room</h2>
<div class="grid place-content-center">
{{ block "roomPeople" .ARoom }}
<div
class="flex flex-row"
>
{{ range (personsFromRoom .) }}
{{ template "personBlocks" . }}
{{ end }}
</div>
{{end}}
</div>
{{end}}