email fixes

remotes/origin/stage6
ya_dim4ik 9 years ago
parent bfb41fe636
commit 840b437fce
  1. 89
      emencia/django/newsletter/templates/newsletter/AutomaticEmail_v2.html

@ -270,7 +270,7 @@
</table>
{% for sqs_obj in russia %}
{% with sqs_obj.object as obj %}
<table style="width: 100%; margin-top: 18px; {% if not forloop.last %}border-bottom: 1px solid #eaeaea;{% endif %}">
<table style="width: 100%; margin-top: 18px; {% if not forloop.last %}border-bottom: 1px solid #e6e6e5;{% endif %}">
<tr>
<td valign="top" style="width: 110px;">
<a href="https://{{ domain }}{{ obj.get_permanent_url }}" class="event_image">
@ -424,57 +424,52 @@
{# -------------- БАНЕР --------------- #}
{% if newsletter.banner %}
{# {% thumbnail newsletter.banner '129x600' as im %}#}
<img src="cid:inside_image" alt="">
{# {% endthumbnail %}#}
<img src="cid:inside_image" alt="">
{% endif %}
{% if news %}
<!-- Новости событий -->
<table style="width: 100%;">
<tr>
<td>
<table style="width: 600px; margin: 0 auto;">
<!-- Новости событий -->
<table style="width: 100%;">
<tr>
<td colspan="2" align="center" style="padding-top: 40px; padding-bottom: 30px; font-family: Arial, sans-serif; font-size: 30px; font-weight: bold; text-transform: uppercase; color: #333333">{% trans "Новости событий" %}</td>
</tr>
<tr>
<td style="width: 300px; text-align: center; padding-bottom: 30px;" valign="top">
{# {% thumbnail news.logo "272" as im %}#}
<td>
<table style="width: 600px; margin: 0 auto;">
<tr>
<td colspan="2" align="center" style="padding-top: 40px; padding-bottom: 30px; font-family: Arial, sans-serif; font-size: 30px; font-weight: bold; text-transform: uppercase; color: #333333">{% trans "Новости событий" %}</td>
</tr>
<tr>
<td style="width: 300px; text-align: center; padding-bottom: 30px;" valign="top">
<a href="http://{{ domain }}{{ news.get_permanent_url }}"><img src="cid:news{{ news.pk }}" alt=""></a>
{# {% endthumbnail %}#}
</td>
</td>
<td valign="top" style="padding-right: 15px;">
<table>
<tr>
<td style="padding-bottom: 8px;"><a href="http://{{ domain }}{{ news.get_permanent_url }}" class="event_title">{{ news.main_title|safe }}</a></td>
</tr>
<tr>
<td valign="middle" style="color: #3399cc; font-size: 17px; padding-bottom: 8px;">
<img src="cid:calendar" alt="" style="margin-right: 4px;">
{{ news.publish_date|date:"d E Y" }}
</td>
</tr>
<tr>
<td style="font-family: Arial, sans-serif; color: #999999; font-size: 13px; padding-bottom: 20px; line-height: 1.5;">{{ news.preview|safe|truncatewords_html:25 }}</td>
</tr>
<tr>
<td>
<a href="http://{{ domain }}/news/" style="display: inline-block; padding: 7px 17px 6px 20px; border: 1px solid #ff6600; color: #ff6600; text-decoration: none; text-transform: uppercase; font-size: 12px; line-height: 12px; border-radius: 5px;">{% trans "Все новости" %} <img src="cid:arrow" alt=""></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<td valign="top" style="padding-right: 15px;">
<table>
<tr>
<td style="padding-bottom: 8px;"><a href="http://{{ domain }}{{ news.get_permanent_url }}" class="event_title">{{ news.main_title|safe }}</a></td>
</tr>
<tr>
<td valign="middle" style="color: #3399cc; font-size: 17px; padding-bottom: 8px;">
<img src="cid:calendar" alt="" style="margin-right: 4px;">
{{ news.publish_date|date:"d E Y" }}
</td>
</tr>
<tr>
<td style="font-family: Arial, sans-serif; color: #999999; font-size: 13px; padding-bottom: 20px; line-height: 1.5;">{{ news.preview|safe|truncatewords_html:25 }}</td>
</tr>
<tr>
<td>
<a href="http://{{ domain }}/news/" style="display: inline-block; padding: 7px 17px 6px 20px; border: 1px solid #ff6600; color: #ff6600; text-decoration: none; text-transform: uppercase; font-size: 12px; line-height: 12px; border-radius: 5px;">{% trans "Все новости" %} <img src="cid:arrow" alt=""></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<hr style="width: 565px; margin: 0 auto; background-color: #e6e6e5; height: 1px; border: 0;">
{% endif %}
<hr style="width: 565px; margin: 0 auto; background-color: #e6e6e5; height: 1px; border: 0;">
{% if blog %}
<!-- Новенькое из блога -->
<table style="width: 100%;">
@ -541,7 +536,7 @@
<!-- Управление подпиской -->
<table width="600px; margin: 0 auto;">
<table cellpadding="0" cellspacing="0" width="600px; margin: 0 auto;">
<tr>
<td align="center" style="text-align: center; font-family: Arial, sans-serif; color: #333333; font-size: 17px; font-weight: bold; text-transform: uppercase; padding-top: 35px; padding-bottom: 20px;">{% trans "Управление подпиской:" %}</td>
</tr>
@ -559,7 +554,7 @@
<!-- Thanks -->
<table style="width: 100%; background-color: #ffffff;">
<table cellpadding="0" cellspacing="0" style="width: 100%; background-color: #ffffff;">
<tr>
<td style="padding-top: 26px; padding-bottom: 26px; border-top: 1px solid #f3f3f3; border-bottom: 1px solid #f3f3f3">
<table style="width: 600px; margin: 0 auto;">
@ -589,7 +584,7 @@
<tr>
<td style="font-family: Arial, sans-serif; color: #333333; font-size: 14px; line-height: 1.5; padding-bottom: 10px;">
{% trans "По вопросам участия в выставках звоните" %}: <br>
+7 (499) 999 -12-07
+7&nbsp;&#040;499&#041;&nbsp;999&#045;12&#045;07
</td>
</tr>
</table>

Loading…
Cancel
Save