Split travel and product-test via explicit report-type templates.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-21 14:31:22 +03:30
parent 89fa657df8
commit c188a6387a
10 changed files with 55 additions and 10 deletions

View File

@@ -141,6 +141,7 @@ function Meta(meta)
local logo_path = resolve_logo_path(stringify(meta.logofile or "assets/logo.png"))
local logo_uri = file_to_data_uri(logo_path)
local destinations = escape_html(meta_list_join(meta.destinations, " - "))
local report_type = stringify(meta["report-type"])
local purpose = stringify(meta.purpose)
local report_date = escape_html(meta["report-date"] or meta.date or "")
local authors = escape_html(author_names(meta))
@@ -190,8 +191,9 @@ function Meta(meta)
</div>
]], running_logo, company, subtitle)
-- Travel meta is gated on report-type (from templates/travel.yml), not on purpose.
local travel = ""
if purpose ~= nil and purpose ~= "" then
if report_type == "travel" then
travel = string.format([[
<div class="print-travel-meta print-only">
<hr class="rule" />