Drop "TXproducts —" prefix from CTA Campaign phase headers
Header is now just the date range and lead theme (e.g. "Nov 3 - Nov 26 (Failure Analysis)"), no company-name prefix — the Campaign dropdown above it already names both the campaign and the company.
This commit is contained in:
1 parent
91b9f3f232
commit
ad2f8698f7
2 files changed
+15
-2
No files matched your search
@@ -4542,9 +4542,17 @@ def _render_reports_tab(month_value):
|
||||
_is_campaign_month = report.CAMPAIGN_START <= _month_start <= report.CAMPAIGN_END
|
||||
except ValueError:
|
||||
pass
|
||||
if _is_campaign_month:
|
||||
_title_text = f"{stats['period_label']} End of Month Campaign Report"
|
||||
elif month_value in report.CUSTOM_PERIODS:
|
||||
# Just the date range and its lead theme, e.g. "Nov 3 - Nov 26 (Failure
|
||||
# Analysis)" — no "TXproducts —" prefix, the Campaign dropdown above it
|
||||
# already names the campaign and the company.
|
||||
_title_text = stats["period_label"]
|
||||
else:
|
||||
_title_text = f"TXproducts — {stats['period_label']}"
|
||||
title_heading = html.H3(
|
||||
f"{stats['period_label']} End of Month Campaign Report" if _is_campaign_month
|
||||
else f"TXproducts — {stats['period_label']}",
|
||||
_title_text,
|
||||
style={"color": "#1b3a5c", "marginBottom": "0", "fontWeight": "700",
|
||||
"fontSize": "2rem", "whiteSpace": "nowrap"})
|
||||
|
||||
|
||||
@@ -289,6 +289,11 @@ def build_report_docx(ctx, timeframe_value="all"):
|
||||
title_text = "TXproducts — 3-Month Campaign Report (July-September 2026)"
|
||||
elif monthly_notes and is_campaign_month:
|
||||
title_text = f"{period_label} End of Month Campaign Report"
|
||||
elif timeframe_value in CUSTOM_PERIODS:
|
||||
# Just the date range and its lead theme, e.g. "Nov 3 - Nov 26 (Failure
|
||||
# Analysis)" — no "TXproducts —" prefix, the Campaign dropdown above it
|
||||
# already names the campaign and the company.
|
||||
title_text = period_label
|
||||
elif monthly_notes:
|
||||
title_text = f"TXproducts — {period_label}"
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user