From 317587e1fb571faaa5c6f0636d43a9b541194dae Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Sun, 28 Feb 2021 12:55:52 +0100 Subject: [PATCH] formattage de l'email --- app/views/emails/_email.html.erb | 150 +++++++++++++++---------------- 1 file changed, 74 insertions(+), 76 deletions(-) diff --git a/app/views/emails/_email.html.erb b/app/views/emails/_email.html.erb index 24deb67..be5f868 100644 --- a/app/views/emails/_email.html.erb +++ b/app/views/emails/_email.html.erb @@ -1,84 +1,82 @@
- + - - - - - - - - - - - - - - - - - - - - - - - <% if email.organisations.present? %> +
+
+ - - + + + + + + + + + + + + + + + + + + + <% if email.organisations.present? %> + + + + + <% end %> + <% if email.servers.present? %> + + + + + <% end %> + <% if email.issues.present? %> + + + + + <% end %> + + + + + + <% email.headers.each do |header| %> + + + + + <% end %> + + +
+ <% if email.plain_body.present? %> +
<%= email.plain_body %>
+ <% else %> + Empty body <% end %> - <% if email.servers.present? %> - - Servers - - <% email.servers.presence.each do |server| %> - - <% end %> - - - <% end %> - <% if email.issues.present? %> - - Issues - - <% email.issues.presence.each do |issue| %> - - <% end %> - - - <% end %> - - From Cron - - "><%= email.cron? ? "Yes" : "No" %> - - - - - <% email.headers.each do |header| %> - - <%= header["name"] %> - <%= header["value"] %> - - <% end %> - - - - - <% if email.plain_body.present? %> -
<%= email.plain_body %>
- <% else %> - Empty body - <% end %> - - - - +
+