From 8225ca496584434bb0c18dedd9f972d54d0098fd Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Wed, 27 Jan 2021 13:44:04 +0100 Subject: [PATCH] =?UTF-8?q?Affichage=20des=20meta-donn=C3=A9es=20"cron"=20?= =?UTF-8?q?et=20"list"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/stylesheets/emails.scss | 8 ++++++++ app/views/emails/index.html.erb | 11 +++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/emails.scss b/app/assets/stylesheets/emails.scss index 0ec8079..3ff9e1d 100644 --- a/app/assets/stylesheets/emails.scss +++ b/app/assets/stylesheets/emails.scss @@ -14,6 +14,14 @@ background-color: orange; padding: 1px 2px; } +.email_attribute_cron { + background-color: #cdcdcd; + padding: 1px 2px; +} +.email_attribute_mailing_list { + background-color: #99ff00; + padding: 1px 2px; +} .email_content th { text-align: left; diff --git a/app/views/emails/index.html.erb b/app/views/emails/index.html.erb index 40e59da..9a76fac 100644 --- a/app/views/emails/index.html.erb +++ b/app/views/emails/index.html.erb @@ -7,8 +7,7 @@ Date Subject - Clients - Servers + Metadata @@ -22,11 +21,15 @@ <% email.organisations.each do |organisation| %> <%= organisation %> <% end if email.organisations %> - - <% email.servers.each do |server| %> <%= server %> <% end if email.servers %> + <% if email.cron? %> + cron + <% end %> + <% if email.mailing_list? %> + list + <% end %> <%= link_to 'Show', email %> <%= link_to 'Edit', edit_email_path(email) %>