From 793ebdf1a9e40f105f228ada991309c4a7425482 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Wed, 27 Jan 2021 13:52:17 +0100 Subject: [PATCH] Affichage de "junk" --- app/assets/stylesheets/emails.scss | 5 +++++ app/views/emails/index.html.erb | 3 +++ 2 files changed, 8 insertions(+) diff --git a/app/assets/stylesheets/emails.scss b/app/assets/stylesheets/emails.scss index 3ff9e1d..95b128f 100644 --- a/app/assets/stylesheets/emails.scss +++ b/app/assets/stylesheets/emails.scss @@ -22,6 +22,11 @@ background-color: #99ff00; padding: 1px 2px; } +.email_attribute_junk { + background-color: #222222; + color: #cccccc + 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 9a76fac..0255729 100644 --- a/app/views/emails/index.html.erb +++ b/app/views/emails/index.html.erb @@ -30,6 +30,9 @@ <% if email.mailing_list? %> list <% end %> + <% if email.junk? %> + junk + <% end %> <%= link_to 'Show', email %> <%= link_to 'Edit', edit_email_path(email) %>