diff --git a/app/assets/stylesheets/emails.scss b/app/assets/stylesheets/emails.scss
index 05d265c..5ee78eb 100644
--- a/app/assets/stylesheets/emails.scss
+++ b/app/assets/stylesheets/emails.scss
@@ -5,26 +5,31 @@
.email_attribute_server {
background-color: cyan;
padding: 1px 2px;
+ color: #666666;
}
.email_attribute_organisation {
background-color: yellow;
padding: 1px 2px;
+ color: #666666;
}
.email_attribute_issue {
background-color: orange;
padding: 1px 2px;
+ color: #666666;
}
.email_attribute_cron {
background-color: #cdcdcd;
padding: 1px 2px;
+ color: #666666;
}
.email_attribute_mailing_list {
background-color: #99ff00;
padding: 1px 2px;
+ color: #666666;
}
.email_attribute_junk {
background-color: #222222;
- color: #cccccc;
+ color: #666666;
padding: 1px 2px;
}
diff --git a/app/views/emails/_list.html.erb b/app/views/emails/_list.html.erb
index d9b386f..61f874e 100644
--- a/app/views/emails/_list.html.erb
+++ b/app/views/emails/_list.html.erb
@@ -1,37 +1,40 @@
-
+
+
+
+ Date |
+ Subject |
+ Metadata |
+ Show, Edit, Destroy |
+
+
-
-
- <%= link_to_previous_page @emails, 'Previous page', class: "ml-3 paginate-page paginate-page-single" %>
- <%= link_to_next_page @emails, 'Next Page', class: "paginate-page paginate-page-single" %>
-
-
-
-
- Showing
- <%= @emails.offset_value + 1 %>
- to
- <%= @emails.offset_value + (@emails.respond_to?(:records) ? @emails.records : @emails.to_a).size %>
- of
- <%= @emails.total_count %>
- results
-
+
+ <% emails.each do |email| %>
+ <%= render partial: "list_row", object: email, as: :email %>
+ <% end %>
+
+
+
+
+
+ <%= link_to_previous_page @emails, 'Previous page', class: "ml-3 paginate-page paginate-page-single" %>
+ <%= link_to_next_page @emails, 'Next Page', class: "paginate-page paginate-page-single" %>
+
+
+
+
+ Showing
+ <%= @emails.offset_value + 1 %>
+ to
+ <%= @emails.offset_value + (@emails.respond_to?(:records) ? @emails.records : @emails.to_a).size %>
+ of
+ <%= @emails.total_count %>
+ results
+
+
+ <%= paginate @emails %>
- <%= paginate @emails %>
diff --git a/app/views/emails/_list_row.html.erb b/app/views/emails/_list_row.html.erb
index 24c1e12..a4fd09b 100644
--- a/app/views/emails/_list_row.html.erb
+++ b/app/views/emails/_list_row.html.erb
@@ -1,24 +1,26 @@
-
+ <%= email.date.strftime("%Y-%m-%d %H:%M") %> |
+ <%= email.subject %> |
+
<% email.organisations.each do |organisation| %>
- <%= organisation %>
+ <%= organisation %>
<% end if email.organisations %>
<% email.servers.each do |server| %>
- <%= server %>
+ <%= server %>
<% end if email.servers %>
<% if email.cron? %>
- cron
+ cron
<% end %>
<% if email.mailing_list? %>
- list
+ list
<% end %>
<% if email.junk? %>
- junk
+ junk
<% end %>
|
- <%= link_to 'Show', email, "data-turbo-frame": "_top" %> |
- <%= link_to 'Edit', edit_email_path(email), "data-turbo-frame": "_top" %> |
- <%= link_to 'Destroy', email, method: :delete, data: { confirm: 'Are you sure?' }, "data-turbo-frame": "_top" %> |
+
+ <%= link_to 'Show', email, "data-turbo-frame": "_top", class: "flex" %>
+ <%= link_to 'Edit', edit_email_path(email), "data-turbo-frame": "_top", class: "flex" %>
+ <%= link_to 'Destroy', email, method: :delete, data: { confirm: 'Are you sure?' }, "data-turbo-frame": "_top", class: "flex" %>
+ |
diff --git a/app/views/filters/index.html.erb b/app/views/filters/index.html.erb
index 43e9c40..e880396 100644
--- a/app/views/filters/index.html.erb
+++ b/app/views/filters/index.html.erb
@@ -4,31 +4,51 @@