From b9c0a985c32681ad260635081c32eaef4ad4649e Mon Sep 17 00:00:00 2001 From: Konrad du Plessis Date: Mon, 23 Feb 2026 00:19:35 +0200 Subject: [PATCH] Fix template comments rendering as visible text on Work History page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- core/templates/core/work_history.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/core/templates/core/work_history.html b/core/templates/core/work_history.html index 0122aa1..adc4ed5 100644 --- a/core/templates/core/work_history.html +++ b/core/templates/core/work_history.html @@ -211,8 +211,7 @@ {# === 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. #}
@@ -602,8 +601,7 @@ {{ log.date }} {{ log.project.name }} - {# 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 @@ {% if is_admin %} - {# 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 %} R {{ filtered_worker_obj.daily_rate }} {% else %}