Affichage de "junk"

This commit is contained in:
Jérémy Lecour 2021-01-27 13:52:17 +01:00 committed by Jérémy Lecour
parent 028a7345be
commit 793ebdf1a9
2 changed files with 8 additions and 0 deletions

View file

@ -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;

View file

@ -30,6 +30,9 @@
<% if email.mailing_list? %>
<span class="email_attribute_mailing_list">list</span>
<% end %>
<% if email.junk? %>
<span class="email_attribute_junk">junk</span>
<% end %>
</td>
<td><%= link_to 'Show', email %></td>
<td><%= link_to 'Edit', edit_email_path(email) %></td>