fix(telefoni): add SSR fallback rows for non-empty log page

This commit is contained in:
Christian 2026-05-16 10:52:36 +02:00
parent 0ed450451d
commit 97a4a2435c
2 changed files with 32 additions and 1 deletions

5
RELEASE_NOTES_v2.3.2.md Normal file
View File

@ -0,0 +1,5 @@
# RELEASE_NOTES_v2.3.2
**Date:** 16. maj 2026
**Summary:** Telefoni page no longer appears empty due to SSR fallback rows in `app/modules/telefoni/templates/log.html`

View File

@ -59,7 +59,33 @@
</tr>
</thead>
<tbody id="telefoniRows">
<tr><td colspan="7" class="text-muted small">Indlæser...</td></tr>
{% if initial_calls and initial_calls|length > 0 %}
{% for call in initial_calls %}
<tr>
<td>{{ call.started_at or '-' }}</td>
<td>{{ call.full_name or call.username or '-' }}</td>
<td>{% if call.direction == 'outbound' %}Udgående{% else %}Indgående{% endif %}</td>
<td>{{ call.display_number or '-' }}</td>
<td>
{% if call.kontakt_id %}
<a href="/contacts/{{ call.kontakt_id }}">{{ (call.contact_name or ('Kontakt #' ~ call.kontakt_id))|trim }}</a>
{% else %}
-
{% endif %}
</td>
<td>
{% if call.sag_id %}
<a href="/sag/{{ call.sag_id }}/v3">{{ call.sag_titel or ('Sag #' ~ call.sag_id) }}</a>
{% else %}
-
{% endif %}
</td>
<td class="text-end">{{ call.duration_sec if call.duration_sec is not none else '-' }}</td>
</tr>
{% endfor %}
{% else %}
<tr><td colspan="7" class="text-muted small">Ingen opkald fundet</td></tr>
{% endif %}
</tbody>
</table>
</div>