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) %>