custom reports returning array columns will be split over lines

This commit is contained in:
Oliver Gorwits
2023-12-05 21:32:41 +00:00
parent 2afa56dde9
commit 8397eabe50
2 changed files with 10 additions and 7 deletions

View File

@@ -10,13 +10,16 @@
[% FOREACH row IN results %]
<tr>
[% FOREACH col IN columns %]
[% IF column_options.$col._searchable %]
<td>
<a href="[% uri_for('/search') | none %]?q=[% row.item(col) | uri %]">[% row.item(col) | html_entity %]</a>
</td>
[% ELSE %]
<td>[% row.item(col) | html_entity %]</td>
<td>
[% FOREACH record IN row.item(col) %]
[% IF column_options.$col._searchable %]
<a href="[% uri_for('/search') | none %]?q=[% record | uri %]">[% record | html_entity %]</a>
[% ELSE %]
[% record | html_entity %]
[% END %]
[% '<br />' IF loop.size > 1 %]
[% END %]
</td>
[% END %]
</tr>
[% END %]