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 @@ - - - - - - - - - - - <% emails.each do |email| %> - <%= render partial: "list_row", object: email, as: :email %> - <% end %> - -
DateSubjectMetadata
+
+ + + + + + + + + -
-
- <%= 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" %> -
-
+ <% emails.each do |email| %> + <%= render partial: "list_row", object: email, as: :email %> + <% end %> + +
DateSubjectMetadataShow, 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" %> +
+ - <%= 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.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 @@

<%= notice %>

- - - - - - - - - - - - - <% @filters.each do |filter| %> +
+
DescriptionEnabledOperatorInverted
+ - - - - - - - + + + + + - <% end %> - -
<%= filter.description %><%= filter.enabled %><%= filter.operator %><%= filter.inverted %><%= link_to 'Show', filter %><%= link_to 'Edit', edit_filter_path(filter) %><%= link_to 'Destroy', filter, method: :delete, data: { confirm: 'Are you sure?' } %>DescriptionEnabledOperatorInvertedShow, Edit, Destroy
+ + + + <% @filters.each do |filter| %> + + + <%= filter.description %> + + + <% if filter.enabled? %> + + <%= filter.enabled %> + + <% else %> + + <%= filter.enabled %> + + <% end %> + + + <%= filter.operator %> + + + <%= filter.inverted %> + + + <%= link_to 'Show', filter %> + <%= link_to 'Edit', edit_filter_path(filter) %> + <%= link_to 'Destroy', filter, method: :delete, data: { confirm: 'Are you sure?' } %> + + + <% end %> + + +
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index dd9dbe8..b32734e 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -114,7 +114,7 @@
-
+
<%= yield %>