Changeset - fb565a8b4b4f
[Not reviewed]
default
0 4 0
Mads Kiilerich - 9 years ago 2017-01-22 01:16:51
mads@kiilerich.com
mails: make title in header boxes slightly bolder

In my opinion, the top headers in the new mail styling seemed a bit "thin"
compared to the other headers.
4 files changed with 21 insertions and 20 deletions:
0 comments (0 inline, 0 general)
kallithea/model/notification.py
Show inline comments
 
@@ -336,10 +336,11 @@ class EmailNotificationModel(BaseModel):
 
                "monospace_style": "font-family:Lucida Console,Consolas,Monaco,Inconsolata,Liberation Mono,monospace",
 
                "sans_style": "font-family:Helvetica,Arial,sans-serif",
 
                })
 
            _kwargs.update({
 
                "default_style": "%(sans_style)s;font-weight:200;font-size:14px;line-height:17px;color:%(color_text)s" % _kwargs,
 
                "comment_style": "%(monospace_style)s;white-space:pre-wrap" % _kwargs,
 
                "emph_style": "font-weight:600;color:%(color_emph)s" % _kwargs,
 
                })
 

	
 
        log.debug('rendering tmpl %s with kwargs %s', base, _kwargs)
 
        return email_template.render(**_kwargs)
kallithea/templates/email_templates/comment.html
Show inline comments
 
@@ -5,13 +5,13 @@
 
    <tr>
 
        <td height="10px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="20px"></td>
 
        <td>
 
            <div style="font-weight:600;color:${color_emph}">${author}</div>
 
            <div style="${emph_style}">${author}</div>
 
        </td>
 
        <td width="20px"></td>
 
    </tr>
 
    <tr>
 
        <td height="10px" colspan="3" style="border-bottom:1px solid ${color_border}"></td>
 
    </tr>
kallithea/templates/email_templates/header.html
Show inline comments
 
@@ -7,16 +7,16 @@
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="${sans_style};font-size:19px;line-height:24px">
 
        %if link is not None:
 
            <a style="text-decoration:none;color:${color_emph}" href="${link}"
 
            <a style="text-decoration:none;${emph_style}" href="${link}"
 
               target="_blank">${title}</a>
 
        %else:
 
            <span style="color:${color_emph}">${title}</span>
 
            <span style="${emph_style}">${title}</span>
 
        %endif
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
kallithea/tests/models/test_dump_html_mails.ref.html
Show inline comments
 
@@ -51,13 +51,13 @@ View Comment: http://comment.org
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://comment.org"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://comment.org"
 
               target="_blank">Comment on Changeset &#34;This changeset did something clever which is hard to explain&#34;</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -208,13 +208,13 @@ View Comment: http://comment.org
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://comment.org"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://comment.org"
 
               target="_blank">Mention in Comment on Changeset &#34;This changeset did something clever which is hard to explain&#34;</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -367,13 +367,13 @@ View Comment: http://comment.org
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://comment.org"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://comment.org"
 
               target="_blank">Comment on Changeset &#34;This changeset did something clever which is hard to explain&#34;</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -542,13 +542,13 @@ View Comment: http://comment.org
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://comment.org"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://comment.org"
 
               target="_blank">Mention in Comment on Changeset &#34;This changeset did something clever which is hard to explain&#34;</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -699,13 +699,13 @@ Subject: Test Message
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <span style="color:#395fa0">Message</span>
 
            <span style="font-weight:600;color:#395fa0">Message</span>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
@@ -782,13 +782,13 @@ View User Profile: http://newbie.org
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://newbie.org"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://newbie.org"
 
               target="_blank">New User Registration</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -922,13 +922,13 @@ View Pull Request: http://pr.org/7
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://pr.org/7"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://pr.org/7"
 
               target="_blank">Added as Reviewer of Pull Request #7 &#34;The Title&#34; by Requesting User (root)</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -1095,13 +1095,13 @@ View Pull Request: http://pr.org/7
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://pr.org/7"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://pr.org/7"
 
               target="_blank">Mention on Pull Request #7 &#34;The Title&#34; by Requesting User (root)</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -1263,13 +1263,13 @@ View Comment: http://pr.org/comment
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://pr.org/comment"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://pr.org/comment"
 
               target="_blank">Comment on Pull Request #7 &#34;The Title&#34;</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -1426,13 +1426,13 @@ View Comment: http://pr.org/comment
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://pr.org/comment"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://pr.org/comment"
 
               target="_blank">Mention in Comment on Pull Request #7 &#34;The Title&#34;</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -1591,13 +1591,13 @@ View Comment: http://pr.org/comment
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://pr.org/comment"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://pr.org/comment"
 
               target="_blank">Comment on Pull Request #7 &#34;The Title&#34;</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -1772,13 +1772,13 @@ View Comment: http://pr.org/comment
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://pr.org/comment"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://pr.org/comment"
 
               target="_blank">Mention in Comment on Pull Request #7 &#34;The Title&#34;</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -1953,13 +1953,13 @@ View Comment: http://pr.org/comment
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://pr.org/comment"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://pr.org/comment"
 
               target="_blank">Pull Request #7 &#34;The Title&#34; Closed</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -2133,13 +2133,13 @@ View Comment: http://pr.org/comment
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://pr.org/comment"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://pr.org/comment"
 
               target="_blank">Mention in Comment on Pull Request #7 &#34;The Title&#34;</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -2315,13 +2315,13 @@ View Comment: http://pr.org/comment
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://pr.org/comment"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://pr.org/comment"
 
               target="_blank">Pull Request #7 &#34;The Title&#34; Closed</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -2501,13 +2501,13 @@ View Comment: http://pr.org/comment
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <a style="text-decoration:none;color:#395fa0" href="http://pr.org/comment"
 
            <a style="text-decoration:none;font-weight:600;color:#395fa0" href="http://pr.org/comment"
 
               target="_blank">Mention in Comment on Pull Request #7 &#34;The Title&#34;</a>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
@@ -2680,13 +2680,13 @@ If it weren't you who requested the pass
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
 
    <tr>
 
        <td width="30px"></td>
 
        <td style="font-family:Helvetica,Arial,sans-serif;font-size:19px;line-height:24px">
 
            <span style="color:#395fa0">Password Reset Request</span>
 
            <span style="font-weight:600;color:#395fa0">Password Reset Request</span>
 
        </td>
 
        <td width="30px"></td>
 
    </tr>
 
    <tr>
 
        <td height="20px" colspan="3"></td>
 
    </tr>
0 comments (0 inline, 0 general)