mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-12-12 16:45:21 +00:00
d55e718d69
Backport of my fix proposed on Wikia/app repo: https://github.com/Wikia/app/pull/15746
19 lines
671 B
Handlebars
19 lines
671 B
Handlebars
<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"{{#if inlineStyles}} style="{{inlineStyles}}"{{/if}}>{{{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> |