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 %>
-
+
New topics: |
<%= @metrics[:new_topics].size %> |
@@ -115,29 +127,30 @@
Topics without responses: |
<%= @metrics[:no_response].size %> |
-
-
- |
+
+
Average response time: |
<%= @metrics[:average_response_time] %> |
@@ -148,27 +161,29 @@
|
- 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|%>
- -
- <%= user[:username] %> (<%= user[:posts] %>)
- <% end %>
-
-
- <% @metrics[:top_creators].each do |user|%>
- -
- <%= user[:username] %> (<%= user[:topics] %>)
- <% end %>
-
+ |
+
+ <% @metrics[:top_posters].each do |user|%>
+ -
+ <%= user[:username] %> (<%= user[:posts] %>)
+ <% end %>
+
+
+
+ Top <%= SiteSetting.weekly_email_report_top_user_count %> topic creators: |
|
+
+
+ <% @metrics[:top_creators].each do |user|%>
+ -
+ <%= user[:username] %> (<%= user[:topics] %>)
+ <% end %>
+
+