# HG changeset patch # User Thomas De Schampheleire # Date 1517674258 -3600 # Node ID 037295a8846dcafffa74a3032fb93963aca29092 # Parent 5ab31ff3011f2e43267c4861bc0a9d3b82a4c0e9 HTML email templates: Outlook: center action button The rendering of HTML emails in Outlook is very restricted and based on old Internet Explorer versions (more or less the same rendering as in Microsoft Word). To make the Kallithea emails look the same as in the browser, some adaptations are needed. One of the problems is that the action button is not centered. An extra
tag solves this issue. diff -r 5ab31ff3011f -r 037295a8846d kallithea/templates/email_templates/button.html --- a/kallithea/templates/email_templates/button.html Fri Feb 09 20:14:29 2018 +0100 +++ b/kallithea/templates/email_templates/button.html Sat Feb 03 17:10:58 2018 +0100 @@ -1,26 +1,28 @@ <%page args="url,title='',padding_top=True,padding_bottom=True" />\ ## - - %if padding_top: - - - - %endif - - - - %if padding_bottom: - - - - %endif -
- -
- - ${_(title)} - -
-
-
+
+ + %if padding_top: + + + + %endif + + + + %if padding_bottom: + + + + %endif +
+ +
+ + ${_(title)} + +
+
+
+
## diff -r 5ab31ff3011f -r 037295a8846d kallithea/tests/models/test_dump_html_mails.ref.html --- a/kallithea/tests/models/test_dump_html_mails.ref.html Fri Feb 09 20:14:29 2018 +0100 +++ b/kallithea/tests/models/test_dump_html_mails.ref.html Sat Feb 03 17:10:58 2018 +0100 @@ -126,22 +126,24 @@ - - - - - - - -
- -
- - View Comment - -
-
-
+
+ + + + + + + +
+ +
+ + View Comment + +
+
+
+
@@ -283,22 +285,24 @@ - - - - - - - -
- -
- - View Comment - -
-
-
+
+ + + + + + + +
+ +
+ + View Comment + +
+
+
+
@@ -458,22 +462,24 @@ - - - - - - - -
- -
- - View Comment - -
-
-
+
+ + + + + + + +
+ +
+ + View Comment + +
+
+
+
@@ -633,22 +639,24 @@ - - - - - - - -
- -
- - View Comment - -
-
-
+
+ + + + + + + +
+ +
+ + View Comment + +
+
+
+
@@ -835,22 +843,24 @@ - - - - - - - -
- -
- - View User Profile - -
-
-
+
+ + + + + + + +
+ +
+ + View User Profile + +
+
+
+
@@ -1008,22 +1018,24 @@ - - - - - - - -
- -
- - View Pull Request - -
-
-
+
+ + + + + + + +
+ +
+ + View Pull Request + +
+
+
+
@@ -1181,22 +1193,24 @@ - - - - - - - -
- -
- - View Pull Request - -
-
-
+
+ + + + + + + +
+ +
+ + View Pull Request + +
+
+
+
@@ -1344,22 +1358,24 @@ - - - - - - - -
- -
- - View Comment - -
-
-
+
+ + + + + + + +
+ +
+ + View Comment + +
+
+
+
@@ -1507,22 +1523,24 @@ - - - - - - - -
- -
- - View Comment - -
-
-
+
+ + + + + + + +
+ +
+ + View Comment + +
+
+
+
@@ -1688,22 +1706,24 @@ - - - - - - - -
- -
- - View Comment - -
-
-
+
+ + + + + + + +
+ +
+ + View Comment + +
+
+
+
@@ -1869,22 +1889,24 @@ - - - - - - - -
- -
- - View Comment - -
-
-
+
+ + + + + + + +
+ +
+ + View Comment + +
+
+
+
@@ -2049,22 +2071,24 @@ - - - - - - - -
- -
- - View Comment - -
-
-
+
+ + + + + + + +
+ +
+ + View Comment + +
+
+
+
@@ -2229,22 +2253,24 @@ - - - - - - - -
- -
- - View Comment - -
-
-
+
+ + + + + + + +
+ +
+ + View Comment + +
+
+
+
@@ -2415,22 +2441,24 @@ - - - - - - - -
- -
- - View Comment - -
-
-
+
+ + + + + + + +
+ +
+ + View Comment + +
+
+
+
@@ -2601,22 +2629,24 @@ - - - - - - - -
- -
- - View Comment - -
-
-
+
+ + + + + + + +
+ +
+ + View Comment + +
+
+
+