From aa0c17f521e1de69afad4bc02399be40170c2028 Mon Sep 17 00:00:00 2001 From: Jan Novak Date: Fri, 8 May 2026 10:33:30 +0200 Subject: [PATCH] fix(go): align adults cell class names with Python; un-underline Pay buttons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Map unpaid|partial → cell-unpaid (or cell-unpaid-current for current month) and surplus → cell-overridden, matching Python's Jinja logic; avoids emitting non-existent cell-partial/cell-surplus classes that caused Pay buttons to escape the table. - Add text-decoration: none to .pay-btn so anchor-based Pay links don't show the default underline. Co-Authored-By: Claude Opus 4.7 --- go/internal/web/static/css/app.css | 1 + go/internal/web/templates/adults.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/go/internal/web/static/css/app.css b/go/internal/web/static/css/app.css index 998030f..4f28cea 100644 --- a/go/internal/web/static/css/app.css +++ b/go/internal/web/static/css/app.css @@ -177,6 +177,7 @@ tr:hover { transform: translateY(-50%); background: #ff3333; color: white; + text-decoration: none; border: none; border-radius: 3px; padding: 2px 6px; diff --git a/go/internal/web/templates/adults.tmpl b/go/internal/web/templates/adults.tmpl index a3dc249..1e29e08 100644 --- a/go/internal/web/templates/adults.tmpl +++ b/go/internal/web/templates/adults.tmpl @@ -59,7 +59,7 @@ {{$row.Name}} {{range $i, $cell := $row.Months}} + class="{{if eq $cell.Status "empty"}}cell-empty{{else if and (or (eq $cell.Status "unpaid") (eq $cell.Status "partial")) (ge $cell.RawMonth $.Data.CurrentMonth)}}cell-unpaid-current{{else if or (eq $cell.Status "unpaid") (eq $cell.Status "partial")}}cell-unpaid{{else if eq $cell.Status "ok"}}cell-ok{{end}}{{if $cell.Overridden}} cell-overridden{{end}}"> {{$cell.Text}} {{if and (or (eq $cell.Status "unpaid") (eq $cell.Status "partial")) (lt $cell.RawMonth $.Data.CurrentMonth)}} Pay @@ -77,7 +77,7 @@ TOTAL {{range $i, $t := .Data.Totals}} - + received / expected {{$t.Text}}