# HG changeset patch # User Thomas De Schampheleire # Date 2018-02-03 17:13:18 # Node ID ffe7f24c7c7ab042b713dbca4aeba1169154505b # Parent 037295a8846dcafffa74a3032fb93963aca29092 HTML email templates: Outlook: fix padding inside of 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. The padding inside the button is completely lost in Outlook, the text sticks to the border. This can be fixed by moving the padding styling from the
tag to the cell. diff --git a/kallithea/templates/email_templates/button.html b/kallithea/templates/email_templates/button.html --- a/kallithea/templates/email_templates/button.html +++ b/kallithea/templates/email_templates/button.html @@ -8,9 +8,9 @@ %endif - + -
+
${_(title)} diff --git a/kallithea/tests/models/test_dump_html_mails.ref.html b/kallithea/tests/models/test_dump_html_mails.ref.html --- a/kallithea/tests/models/test_dump_html_mails.ref.html +++ b/kallithea/tests/models/test_dump_html_mails.ref.html @@ -132,9 +132,9 @@ View Comment: http://comment.org - + -
+
View Comment @@ -291,9 +291,9 @@ View Comment: http://comment.org - + -
+
View Comment @@ -468,9 +468,9 @@ View Comment: http://comment.org - + -
+
View Comment @@ -645,9 +645,9 @@ View Comment: http://comment.org - + -
+
View Comment @@ -849,9 +849,9 @@ View User Profile: http://newbie.org - + -
+
View User Profile @@ -1024,9 +1024,9 @@ View Pull Request: http://pr.org/7 - + -
+
View Pull Request @@ -1199,9 +1199,9 @@ View Pull Request: http://pr.org/7 - + -
+
View Pull Request @@ -1364,9 +1364,9 @@ View Comment: http://pr.org/comment - + -
+
View Comment @@ -1529,9 +1529,9 @@ View Comment: http://pr.org/comment - + -
+
View Comment @@ -1712,9 +1712,9 @@ View Comment: http://pr.org/comment - + -
+
View Comment @@ -1895,9 +1895,9 @@ View Comment: http://pr.org/comment - + -
+
View Comment @@ -2077,9 +2077,9 @@ View Comment: http://pr.org/comment - + -
+
View Comment @@ -2259,9 +2259,9 @@ View Comment: http://pr.org/comment - + -
+
View Comment @@ -2447,9 +2447,9 @@ View Comment: http://pr.org/comment - + -
+
View Comment @@ -2635,9 +2635,9 @@ View Comment: http://pr.org/comment - + -
+
View Comment