| 1 |
<div class="overflow-x-auto"> |
| 2 |
<table |
| 3 |
{{- range $k, $v := .Attributes }} |
| 4 |
{{- if $v }} |
| 5 |
{{- printf " %s=%q" $k $v | safeHTMLAttr }} |
| 6 |
{{- end }} |
| 7 |
{{- end }}> |
| 8 |
<thead> |
| 9 |
{{- range .THead }} |
| 10 |
<tr> |
| 11 |
{{- range . }} |
| 12 |
<th {{- with .Alignment }} class="!text-{{ . }}"{{- end }}> |
| 13 |
{{- .Text -}} |
| 14 |
</th> |
| 15 |
{{- end }} |
| 16 |
</tr> |
| 17 |
{{- end }} |
| 18 |
</thead> |
| 19 |
<tbody> |
| 20 |
{{- range .TBody }} |
| 21 |
<tr> |
| 22 |
{{- range . }} |
| 23 |
<td {{- with .Alignment }} class="!text-{{ . }}"{{- end }}> |
| 24 |
{{- .Text -}} |
| 25 |
</td> |
| 26 |
{{- end }} |
| 27 |
</tr> |
| 28 |
{{- end }} |
| 29 |
</tbody> |
| 30 |
</table> |
| 31 |
</div> |