diff --git a/app/src/notify/render.rs b/app/src/notify/render.rs index 596f4876..db25cc07 100644 --- a/app/src/notify/render.rs +++ b/app/src/notify/render.rs @@ -182,8 +182,9 @@ const COPY: &str = "copy:"; /// The one-line setup prompt for a coding agent, as the app shows it. pub const AGENT_PROMPT: &str = "Fetch https://visualci.com/install.md and follow it"; -/// The email's HTML: its paragraphs and one button, in a plain single column. -fn html(paragraphs: &[String], button: (&str, &str)) -> String { +/// The email's HTML: its paragraphs and one button, in a plain single column, and with `footer` the "Questions? Reply +/// to this email." line under it. +fn html(paragraphs: &[String], button: (&str, &str), footer: bool) -> String { let body: String = paragraphs .iter() .map(|p| match p.strip_prefix(COPY) { @@ -198,6 +199,12 @@ fn html(paragraphs: &[String], button: (&str, &str)) -> String { } }) .collect(); + let footer = if footer { + "
Questions? Reply to this email.
" + } else { + "" + }; format!( "\VisualCI
{body}\\ - Questions? Reply to this email.
", + {label}{footer}