mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Story notification uses favicon color for border.
This commit is contained in:
parent
ec01e72a9f
commit
0b789acca1
3 changed files with 4 additions and 2 deletions
|
@ -181,7 +181,8 @@ class MUserFeedNotification(mongo.Document):
|
||||||
params = {
|
params = {
|
||||||
"story": story,
|
"story": story,
|
||||||
"feed": feed,
|
"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'
|
from_address = 'share@newsblur.com'
|
||||||
to_address = '%s <%s>' % (usersub.user.username, usersub.user.email)
|
to_address = '%s <%s>' % (usersub.user.username, usersub.user.email)
|
||||||
|
|
|
@ -286,7 +286,7 @@
|
||||||
<td valign="top" class="comment_wrapper_td">
|
<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%">
|
<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>
|
<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>
|
</tr>
|
||||||
</table>
|
</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%">
|
<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%">
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{% extends "mail/email_base.xhtml" %}
|
{% extends "mail/email_base.xhtml" %}
|
||||||
{% load social_tags utils_tags %}
|
{% load social_tags utils_tags %}
|
||||||
|
|
||||||
|
{% block header_color %}#{{ favicon_border }}{% endblock %}
|
||||||
{% block header %}{% endblock %}
|
{% block header %}{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue