Story notification uses favicon color for border.

This commit is contained in:
Samuel Clay 2016-11-17 16:12:17 -08:00
parent ec01e72a9f
commit 0b789acca1
3 changed files with 4 additions and 2 deletions

View file

@ -181,7 +181,8 @@ class MUserFeedNotification(mongo.Document):
params = {
"story": story,
"feed": feed,
"feed_title": usersub.user_title or feed.feed_title
"feed_title": usersub.user_title or feed.feed_title,
"favicon_border": feed.favicon_border(),
}
from_address = 'share@newsblur.com'
to_address = '%s <%s>' % (usersub.user.username, usersub.user.email)

View file

@ -286,7 +286,7 @@
<td valign="top" class="comment_wrapper_td">
<table cellpadding="0" cellspacing="0" border="0" class="comment_header" style="border: none; border-collapse: separate; font-size: 1px; height: 2px; line-height: 3px; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%">
<tr>
<td valign="top" class="comment_header_td" style="background: #5ba4e5; border: none; font-family: 'Helvetica Neue',Arial,sans-serif; width: 100%" bgcolor="#5ba4e5"></td>
<td valign="top" class="comment_header_td" style="background: {% block header_color %}#5ba4e5{% endblock %}; border: none; font-family: 'Helvetica Neue',Arial,sans-serif; width: 100%"></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" class="comment_body" style="-webkit-background-clip: padding-box; -webkit-border-radius: 0 0 3px 3px; background-clip: padding-box; border-collapse: collapse; border-color: #dddddd; border-radius: 0 0 3px 3px; border-style: solid solid none; border-width: 0 1px 1px; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%">

View file

@ -1,6 +1,7 @@
{% extends "mail/email_base.xhtml" %}
{% load social_tags utils_tags %}
{% block header_color %}#{{ favicon_border }}{% endblock %}
{% block header %}{% endblock %}
{% block body %}