From cebfb8ed6febf2d822008c13614910da728d5f73 Mon Sep 17 00:00:00 2001 From: scholtes Date: Thu, 28 Apr 2016 12:55:33 -0500 Subject: [PATCH] CSS/HTML fixes was not outlook compatible --- .../send_report_to.html.erb | 116 ++++++++++-------- 1 file changed, 66 insertions(+), 50 deletions(-) diff --git a/app/views/weekly_report_mailer/send_report_to.html.erb b/app/views/weekly_report_mailer/send_report_to.html.erb index 88bab46..57d357a 100644 --- a/app/views/weekly_report_mailer/send_report_to.html.erb +++ b/app/views/weekly_report_mailer/send_report_to.html.erb @@ -16,34 +16,46 @@ } table { - padding-left: 5%; + padding-left: 1%; padding-right: 5%; } + + ol { + padding-left: 3%; + } + + a { + text-decoration: none; + } - #scalar-data tr.odd { + .scalar-data tr.odd { background-color: #eeeeee; border: none; } - #scalar-data td { + .scalar-data td { padding-bottom: 4px; padding-right: 15px; } - #scalar-data a:link { + .scalar-data a:link { text-decoration: none; } - #scalar-data a:visited { + .scalar-data a:visited { text-decoration: none; } - #scalar-data a:hover { + .scalar-data a:hover { text-decoration: none; } - #scalar-data a:active { + .scalar-data a:active { text-decoration: none; } - #scalar-data a { + .scalar-data a { text-decoration: none; } + .scalar-data { + width: 650px; + } + #category-data { width: 100%; border-spacing: 0; @@ -106,7 +118,7 @@ <%= SiteSetting.weekly_email_report_interval.days.ago.to_date %> to <%= Date.today %>


- +
@@ -115,29 +127,30 @@ - -
New topics: <%= @metrics[:new_topics].size %>Topics without responses: <%= @metrics[:no_response].size %>
-
+ + <% @metrics[:no_response].each do |topic| %> + + - - + + <% end %> +   + + <% end %> +
  + <% if row = @metrics[:table].find{|row| row[:category].id == topic.category_id} %> + <% if row[:parent] %> + +   +  <%= row[:category].name %>  + <% else %> + +  <%= row[:category].name %>  <% end %> - -
+ + <%= topic.title %> +
+ @@ -148,27 +161,29 @@ - + - -
Average response time: <%= @metrics[:average_response_time] %>
Top <%= SiteSetting.weekly_email_report_top_user_count %> posters: - Top <%= SiteSetting.weekly_email_report_top_user_count %> topic creators: - Top <%= SiteSetting.weekly_email_report_top_user_count %> posters:
-
    - <% @metrics[:top_posters].each do |user|%> -
  1. - <%= user[:username] %> (<%= user[:posts] %>)
  2. - <% end %> -
-
    - <% @metrics[:top_creators].each do |user|%> -
  1. - <%= user[:username] %> (<%= user[:topics] %>)
  2. - <% end %> -
+
+
    + <% @metrics[:top_posters].each do |user|%> +
  1. + <%= user[:username] %> (<%= user[:posts] %>)
  2. + <% end %> +
+ + + +
Top <%= SiteSetting.weekly_email_report_top_user_count %> topic creators:
+
    + <% @metrics[:top_creators].each do |user|%> +
  1. + <%= user[:username] %> (<%= user[:topics] %>)
  2. + <% end %> +
+ @@ -190,11 +205,12 @@ <% if row[:parent] %> - +   +  <%= row[:category].name %>  <% else %> +  <%= row[:category].name %>  <% end %> - <%= row[:category].name %>
SLA time: <%= SiteSetting.weekly_email_report_compliance %> minutes <%= row[:avg_response_time] %>