Files
natascha-rieter.nl-user/plugins/flex-objects/templates/flex-objects/directories/default.html.twig
T
2026-04-18 23:38:26 +02:00

31 lines
999 B
Twig

<table id="data-table" class="table">
<colgroup>
<col width="20" />
<col width="80" />
</colgroup>
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for type, directory in directories %}
{%- set title = options.directories[type]['title'] ?? options.directories[type]['collection']['title'] ?? directory.title -%}
{%- if title matches '/\{/' -%}
{%- set title = include(template_from_string(title, 'collection title template'))|trim -%}
{%- endif -%}
{%- set description = options.directories[type]['description'] ?? options.directories[type]['collection']['description'] ?? directory.description -%}
<tr>
<td>
<a href="{{ url(directory_url ~ '/directory:' ~ type)|e }}">{{ title|e }}</a>
</td>
<td>
{{ description|e }}
</td>
</tr>
{% endfor %}
</tbody>
</table>