Author: Manos Pitsidianakis [manos@pitsidianak.is]
Hash: dbbaeda2fb6be3c064b5cce4df6af18944e55aee
Timestamp: Mon, 18 Dec 2023 18:39:06 +0000 (9 months ago)

+4 -3 +/-1 browse
core/templates: add more info to SUBSCRIPTION_REQUEST_NOTICE_OWNER
core/templates: add more info to SUBSCRIPTION_REQUEST_NOTICE_OWNER

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
1diff --git a/core/src/templates.rs b/core/src/templates.rs
2index 5874b5e..8774c62 100644
3--- a/core/src/templates.rs
4+++ b/core/src/templates.rs
5 @@ -179,10 +179,11 @@ impl Template {
6 pk: -1,
7 name: Self::SUBSCRIPTION_REQUEST_NOTICE_OWNER.to_string(),
8 list: None,
9- subject: Some("Subscription request for {{ list.id }} by {{ candidate }}".to_string()),
10+ subject: Some("Subscription request for {{ list.id }}".to_string()),
11 headers_json: None,
12- body: "Candidate primary key: {{ candidate.pk }}\n\n{{ details|safe if details else \
13- \"\" }}"
14+ body: "Candidate {{ candidate.name if candidate.name else \"\" }} <{{ \
15+ candidate.address }}> Primary key: {{ candidate.pk }}\n\n{{ details|safe if \
16+ details else \"\" }}"
17 .to_string(),
18 }
19 }