Fix template comments rendering as visible text on Work History page

Django {# #} comments can't span multiple lines — they were showing
as raw text in the Workers and Amount columns. Collapsed to single lines.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Konrad du Plessis 2026-02-23 00:19:35 +02:00
parent b6fca98c17
commit b9c0a985c3

View File

@ -211,8 +211,7 @@
</div>
{# === Day Detail Panel === #}
{# Hidden by default. Click day cells to select them (multi-select supported).
The panel shows combined details for all selected days with totals. #}
{# Hidden by default. Click day cells to select them — shows combined details with totals. #}
<div class="card shadow-sm border-0 d-none" id="dayDetailPanel">
<div class="card-header py-2 bg-white">
<div class="d-flex justify-content-between align-items-center">
@ -602,8 +601,7 @@
<td class="ps-4 align-middle">{{ log.date }}</td>
<td class="align-middle"><strong>{{ log.project.name }}</strong></td>
<td class="align-middle">
{# When filtering by a specific worker, show only that worker.
Otherwise show all workers on this log. #}
{# When filtering by a specific worker, show only that worker. Otherwise show all workers. #}
{% if filtered_worker_obj %}
{{ filtered_worker_obj.name }}
{% else %}
@ -630,8 +628,7 @@
</td>
{% if is_admin %}
<td class="align-middle">
{# Daily cost — when filtering by worker show that worker's rate,
otherwise show the total for all workers on the log #}
{# Daily cost — worker's rate when filtered, otherwise total for all workers #}
{% if filtered_worker_obj %}
<span class="text-success fw-semibold">R {{ filtered_worker_obj.daily_rate }}</span>
{% else %}