Split travel and product-test via explicit report-type templates.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -18,6 +18,9 @@ $endif$
|
||||
$if(purpose)$
|
||||
purpose: [$purpose$],
|
||||
$endif$
|
||||
$if(report-type)$
|
||||
report-type: "$report-type$",
|
||||
$endif$
|
||||
$if(logofile)$
|
||||
logo: "$logofile$",
|
||||
$endif$
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
company: none,
|
||||
destinations: none,
|
||||
purpose: none,
|
||||
report-type: none,
|
||||
logo: none,
|
||||
doc,
|
||||
) = {
|
||||
@@ -110,8 +111,8 @@
|
||||
)
|
||||
]
|
||||
|
||||
// Travel reports pass `purpose`; product-test reports put general info in the body.
|
||||
let show-travel-meta = purpose != none and purpose != ""
|
||||
// Travel meta is gated on report-type (from templates/travel.yml), not on purpose.
|
||||
let show-travel-meta = report-type == "travel"
|
||||
|
||||
if show-travel-meta {
|
||||
v(12pt)
|
||||
|
||||
Reference in New Issue
Block a user