<!-- BEGIN [% component.name %] -->
[% # PROCESS dumper.tt dump = records %]
<div class="container">
[% IF records;
IF NOT records.size %]
<div class="alert alert-info my-3" role="alert">
No records found matching "[% params.search %]"
</div>
[% ELSE # have records %]
<div class="row">
<div class="container alert alert-info my-3" role="alert">
Total records: <strong>[% records.size %]</strong>
</div>
<table class="table table-bordered table-striped table-condensed">
<tr>
<th>Date</th>
<th>Detail</th>
</tr>
[% USE date(format = '%d/%m/%Y');
FOREACH entry IN records %]
<tr>
<td>[% date.format(entry.time) %]</td>
<td>
<a href='#' hx-get="[% uri_for_section.infolib.document %]/[% entry.id %]"
hx-target="#hx-container">[% entry.title %]</a>
</td>
</tr>
[% END %]
</table>
</div>
</div>
[% END; END %]
<!-- END [% component.name %] -->