From f629f8329f61d0baeba1d48ff1dcb4e4d9fc40c7 Mon Sep 17 00:00:00 2001 From: Luis Escobar Date: Tue, 8 Mar 2016 04:15:57 +0000 Subject: [PATCH] [FIX] runbot_send_email: Changed 'if' blocks to fix wrong save template in web --- .../data/runbot_send_email_data.xml | 46 +++++++++++++++++-- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/runbot_send_email/data/runbot_send_email_data.xml b/runbot_send_email/data/runbot_send_email_data.xml index c7467bea..3b90ffd4 100644 --- a/runbot_send_email/data/runbot_send_email_data.xml +++ b/runbot_send_email/data/runbot_send_email_data.xml @@ -15,11 +15,11 @@ +% if object.state=="testing":
-% if object.state=="testing": + + + + + + + + + + + + +
@@ -30,8 +30,27 @@ Build #${object.sequence} is ${object.state}
Age: ${object.job_age}m
${object.committer}changeset ${object.name[:8]}
 ${object.subject}
+
+
% elif (object.state=="running" or object.state=="done") and (object.result=="ok"): +
+
+ + + + + + + + + + + + + + +
@@ -42,8 +61,27 @@ Build #${object.sequence} is ${object.state}
Age: ${object.job_age}m
${object.committer}changeset ${object.name[:8]}
 ${object.subject}
+
+
% else: +
+
+ + - -% endif - + + @@ -71,6 +108,7 @@ Build #${object.sequence} is ${object.state} but failed
@@ -54,9 +92,8 @@ Build #${object.sequence} is ${object.state} but failed
Age: ${object.job_age}m
+% endif % if object.state=="testing":