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