Newer
Older
{{- $context := .context -}}
{{- $position := .block.position -}}
{{- $title := .block.title -}}
{{- $title := .block.title -}}
{{- with .block.data -}}
<section class="block block-datatable{{ if $title }} block-with-title{{ end }}" id="block-{{ $position }}">
<div class="container">
<div class="block-content">
{{- if $title }}
<div class="top">
{{ partial "blocks/title" (dict
"title" $title
"context" $context
) }}
{{- if .caption }}
<caption>{{ partial "PrepareHTML" .caption }}</caption>
{{ end -}}
<thead>
<tr>
{{ range .columns }}
<th scope="col">{{ . }}</th>
{{ end }}
</tr>
</thead>
<tbody>
{{ range .rows }}
<tr>
{{ range . }}