mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Updating styling for shared stories.
This commit is contained in:
parent
87b50ab443
commit
ac5a5e8f51
3 changed files with 21 additions and 15 deletions
|
@ -1423,6 +1423,7 @@ def send_story_email(request):
|
|||
comments = request.POST['comments']
|
||||
comments = comments[:2048] # Separated due to PyLint
|
||||
from_address = 'share@newsblur.com'
|
||||
share_user_profile = MSocialProfile.get_user(request.user.pk)
|
||||
|
||||
if not to_addresses:
|
||||
code = -1
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="padding-top: 12px;">
|
||||
<a href="http://{% current_domain %}{{ user.profile.autologin_url }}"><img alt="NewsBlur" src="http://{% current_domain %}/media/img/logo_newsblur.png" title="NewsBlur" style="width:312px;height:55px;border: none;"></a>
|
||||
<a href="http://{% current_domain %}{{ user.profile.autologin_url }}"><img alt="NewsBlur" src="http://{% current_domain %}/media/img/logo_newsblur.png" title="NewsBlur" style="width:312px;height:60px;border: none;"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -1,18 +1,23 @@
|
|||
<p>Hello there! {{ from_name }} is sharing a story with you entitled "{{ story.story_title }}" from {{ feed.feed_title }}.</p>
|
||||
{% extends "mail/email_base.xhtml" %}
|
||||
{% load social_tags %}
|
||||
|
||||
{% if comments %}
|
||||
<p>{{ from_name }} writes:<br />
|
||||
{{ comments }}</p>
|
||||
{% endif %}
|
||||
{% block body %}
|
||||
|
||||
<p style="font-size: 24px; color:#555555; margin-top: 18px;margin-bottom: 10px;padding-top:6px;line-height: 36px;">
|
||||
<a href="{{ share_user_profile.blurblog_url }}"><img src="{{ share_user_profile.email_photo_url }}" style="width: 48px; height: 48px;margin: 0 12px 0 0;border-radius: 3px;border: none;float: left"></a> {{ from_name }} is sharing a story with you entitled "<a href="{{ story.story_permalink|safe }}">{{ story.story_title }}</a>"{% if feed %} from <img src="{{ feed.favicon_url_fqdn }}" style="width: 16px;height: 16px;vertical-align: middle"> {{ feed.feed_title }}{% endif %}:
|
||||
</p>
|
||||
|
||||
{% if comments %}
|
||||
<p>{{ from_name }} writes:<br />
|
||||
{{ comments }}</p>
|
||||
{% endif %}
|
||||
|
||||
<div style="border-top: 3px solid #404040; padding: 4px 0;"></div>
|
||||
|
||||
<p>--</p>
|
||||
<h2>{{ story.story_title }}</h2>
|
||||
|
||||
<h2>{{ story.story_title }}</h2>
|
||||
<a href="{{ story.story_permalink|safe }}">{{ story.story_permalink|safe }}</a>
|
||||
|
||||
<a href="{{ story.story_permalink|safe }}">{{ story.story_permalink|safe }}</a>
|
||||
|
||||
<p>{{ story.story_content|safe }}</p>
|
||||
|
||||
<p>--</p>
|
||||
|
||||
<p>Sent from NewsBlur - <a href="http://www.newsblur.com">www.newsblur.com</a> - a visual feed reader with intelligence.</p>
|
||||
<p>{{ story.story_content|safe }}</p>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Reference in a new issue