Fix search template section items iteration

This commit is contained in:
Ivo Oskamp 2026-02-16 16:09:22 +01:00
parent 79933c2ecd
commit fcce3b8854

View File

@ -19,7 +19,7 @@
<a href="{{ section.view_all_url }}" class="btn btn-sm btn-outline-secondary">Open {{ section.title }}</a> <a href="{{ section.view_all_url }}" class="btn btn-sm btn-outline-secondary">Open {{ section.title }}</a>
</div> </div>
<div class="card-body p-0"> <div class="card-body p-0">
{% if section.items %} {% if section['items'] %}
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-sm mb-0 align-middle"> <table class="table table-sm mb-0 align-middle">
<thead class="table-light"> <thead class="table-light">
@ -30,7 +30,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for item in section.items %} {% for item in section['items'] %}
<tr> <tr>
<td> <td>
{% if item.link %} {% if item.link %}