refactor: pass GestureInfo into brick fragment

This commit is contained in:
efim
2023-11-23 14:25:48 +00:00
parent 82a96ea9d7
commit dbae803ead
3 changed files with 19 additions and 25 deletions

View File

@@ -12,11 +12,11 @@
{{ range .Gestures }}
{{ with .GetGestureInfo }}
<div class="border-2">for {{ .Name }}</div>
<div>{{ template "inactiveBrick" .Color }}</div>
<div>{{ template "raisedBrick" .Color }}</div>
<div>{{ template "speakerBrick" .Color }}</div>
<div>{{ template "markBrick" .Color }}</div>
<div>{{ template "markAndRaisedBrick" .Color }}</div>
<div>{{ template "inactiveBrick" . }}</div>
<div>{{ template "raisedBrick" . }}</div>
<div>{{ template "speakerBrick" . }}</div>
<div>{{ template "markBrick" . }}</div>
<div>{{ template "markAndRaisedBrick" . }}</div>
{{ end }}
{{ end }}
</section>