eleven-8.x-1.0-beta5/eleven/templates/layout-landing/block/table--structure-block-list.html.twig
eleven/templates/layout-landing/block/table--structure-block-list.html.twig
{{ attach_library('eleven/table.admin') }}
{{ attach_library('eleven/table.responsive') }}
<table{{ attributes.addClass('blocklayout') }}>
{% if caption %}
<caption>{{ caption }}</caption>
{% endif %}
{#
{% for colgroup in colgroups %}
{% if colgroup.cols %}
<colgroup{{ colgroup.attributes }}>
{% for col in colgroup.cols %}
<col{{ col.attributes }} />
{% endfor %}
</colgroup>
{% else %}
<colgroup{{ colgroup.attributes }} />
{% endif %}
{% endfor %}
{% if header %}
<thead>
<tr>
{% for cell in header %}
{%
set cell_classes = [
cell.active_table_sort ? 'is-active',
]
%}
<{{ cell.tag }}{{ cell.attributes.addClass(cell_classes) }}>
{{- cell.content -}}
</{{ cell.tag }}>
{% endfor %}
</tr>
</thead>
{% endif %}
#}
{% if rows %}
<tbody>
{% for row in rows %}
{%
set row_classes = [
not no_striping ? cycle(['odd', 'even'], loop.index0),
]
%}
<tr{{ row.attributes.addClass(row_classes) }}>
{% for cell in row.cells %}
<{{ cell.tag }}{{ cell.attributes }}>
{# if we have colspan its the haeder of each region #}
{% if loop.first and cell.attributes.colspan == '5' and cell.content['#title'] %}
{# seperate the title out #}
<h3 class="region-title__name">{{ cell.content['#prefix'] }}</h3>
{{ cell.content|without('#prefix') }}
{% else %}
{{- cell.content -}}
{% endif %}
</{{ cell.tag }}>
{% endfor %}
</tr>
{% endfor %}
</tbody>
{% elseif empty %}
<tbody>
<tr class="odd">
<td colspan="{{ header_columns }}" class="empty message">{{ empty }}</td>
</tr>
</tbody>
{% endif %}
{% if footer %}
<tfoot>
{% for row in footer %}
<tr{{ row.attributes }}>
{% for cell in row.cells %}
<{{ cell.tag }}{{ cell.attributes }}>
{{- cell.content -}}
</{{ cell.tag }}>
{% endfor %}
</tr>
{% endfor %}
</tfoot>
{% endif %}
</table>
