PortableInfobox/templates/PortableInfoboxHorizontalGroupContent.hbs

19 lines
619 B
Handlebars
Raw Normal View History

2018-08-08 09:31:33 +00:00
<table class="pi-horizontal-group{{#unless renderLabels}} pi-horizontal-group-no-labels{{/unless}}">
{{#if header}}<caption class="pi-header pi-secondary-font pi-secondary-background pi-item-spacing">{{{header}}}</caption>{{/if}}
{{#if renderLabels}}
<thead>
<tr>
{{#each labels}}
<th class="pi-horizontal-group-item pi-data-label pi-secondary-font pi-border-color pi-item-spacing">{{{.}}}</th>
{{/each}}
</tr>
</thead>
{{/if}}
<tbody>
<tr>
{{#each values}}
<td class="pi-horizontal-group-item pi-data-value pi-font pi-border-color pi-item-spacing">{{{.}}}</td>
{{/each}}
</tr>
</tbody>
</table>