# HG changeset patch # User Thomas De Schampheleire # Date 2018-02-03 22:29:41 # Node ID d9fc7312177e76bf54312bd5efe4a308748941df # Parent 2b2e37660e95aa2b7ba7cd9ff7c0f23c1b3f88b0 HTML email templates: don't use link color for PR descriptions The link color should only be used for actual hyperlinks. Using it for anything else is very confusing for users. For pullrequest mails, the usage of the link color for the PR description may have been done to separate the description more clearly from the title word 'Description' above it. Instead, use a table with grey background similar to how comments are displayed. This meets the objective of not abusing link colors as well as clearly separating the description from the rest of the mail. diff --git a/kallithea/templates/email_templates/pull_request.html b/kallithea/templates/email_templates/pull_request.html --- a/kallithea/templates/email_templates/pull_request.html +++ b/kallithea/templates/email_templates/pull_request.html @@ -40,7 +40,21 @@ -
${body}
+ + + + + + + + + + + + +
+
${body}
+
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 @@ -987,7 +987,21 @@ View Pull Request: http://pr.org/7 -
This PR is 'awesome' because it does <stuff>
- please approve indented!
+ + + + + + + + + + + + +
+
This PR is 'awesome' because it does <stuff>
- please approve indented!
+
@@ -1162,7 +1176,21 @@ View Pull Request: http://pr.org/7 -
This PR is 'awesome' because it does <stuff>
- please approve indented!
+ + + + + + + + + + + + +
+
This PR is 'awesome' because it does <stuff>
- please approve indented!
+