email fixes

remotes/origin/stage6
ya_dim4ik 9 years ago
parent b5a78d2193
commit 1bfe042368
  1. 82
      emencia/django/newsletter/templates/newsletter/AutomaticEmail_v2.html

@ -70,7 +70,7 @@
<!-- BACKGROUND -->
<table border="0" cellspacing="0" style="width:100%; background-color: #f8f8f6; font-family: Arial;">
<table cellspacing="0" cellpadding="0" border="0" style="width:100%; background-color: #f8f8f6; font-family: Arial;">
{% comment %}
<tr>
<td>&nbsp;</td>
@ -81,7 +81,7 @@
<td align="center" valign="top" style="background-color: #f8f8f6; border-top: 1px solid #f3f3f3;">
<!-- PADDING LEFT&RIGHT -->
<table border="0" cellspacing="0" class="mld-element mld-container" style="width:100%;">
<table cellspacing="0" cellpadding="0" border="0" class="mld-element mld-container" style="width:100%;">
<tr>
<td align="left" valign="top" style="padding:0px 0px 0px 0px; background-color: #ffffff; border-bottom: 1px solid #f3f3f3">
<table border="0" cellspacing="0" cellpadding="0" style="width: 600px; margin: 0 auto;">
@ -102,23 +102,23 @@
{% if recommended %}
{% with recommended.object as obj %}
<!-- recommendation -->
<table border="0" cellspacing="0" style="width:100%;">
<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
<tr>
<td align="center" style="padding:45px 0px 40px 0px;">
<table style="width: 100%;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td align="center" style="color: #333333; font-size: 28px; font-weight: bold; text-transform: uppercase; padding-bottom: 15px;">{% trans "Самые важные события для вас" %}</td>
</tr>
</table>
<table style="width: 600px; margin: 0 auto;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 600px; margin: 0 auto;">
<tr>
<td valign="top" style="width: 225px;">
<a href="http://{{ domain }}{{ obj.get_permanent_url }}"><img src="cid:recommended{{ obj.pk }}" style="margin-top: -2px;"/></a>{# {% endthumbnail %}#}
</td>
<td valign="top" align="left" style="padding-left: 22px;">
<table style="wigth: 100%;">
<table cellspacing="0" cellpadding="0" border="0" style="wigth: 100%;">
<tr>
<td valign="middle" style="color: #cc3399; font-size: 13px; text-transform: uppercase; padding: 3px 0px 3px 0px;">
<table border="0" cellpadding="0" cellspacing="0">
@ -177,20 +177,20 @@
{% if moscow %}
<!-- Moscow -->
<table border="0" cellspacing="0" style="width:100%; background-color: #ffffff; border-top: 1px solid #f3f3f3; border-bottom: 1px solid #f3f3f3;">
<table cellspacing="0" cellpadding="0" border="0" style="width:100%; background-color: #ffffff; border-top: 1px solid #f3f3f3; border-bottom: 1px solid #f3f3f3;">
<tr>
<td>
<table border="0" cellspacing="0" style="width: 600px; margin: 0 auto;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 600px; margin: 0 auto;">
<tr>
<td style="padding: 30px 0px 40px 0px;">
<table style="width: 100%;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td align="center" style="color: #333333; font-size: 28px; font-weight: bold; text-transform: uppercase; padding-bottom: 15px;">{% trans "в москве" %}</td>
</tr>
</table>
{% for sqs_obj in moscow %}
{% with sqs_obj.object as obj %}
<table style="width: 100%; margin-top: 20px; {% if not forloop.last %}border-bottom: 1px solid #eaeaea;{% endif %}">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%; margin-top: 20px; {% if not forloop.last %}border-bottom: 1px solid #eaeaea;{% endif %}">
<tr>
<td valign="top" style="width: 110px;">
<a href="http://{{ domain }}{{ obj.get_permanent_url }}" class="event_image">
@ -198,7 +198,7 @@
</a>
</td>
<td style="padding-left: 20px; width: 470px;">
<table style="width: 100%;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td style="padding-bottom: 5px;"><a href="http://{{ domain }}{{ obj.get_permanent_url }}" class="event_title" style="font-family: Arial,sans-serif; font-size: 17px; line-height: 21px; font-weight: bold; text-transform: uppercase; color: #333333; text-decoration: none;">{{ obj.name|safe }}</a></td>
</tr>
@ -221,7 +221,7 @@
<tr>
<td style="color: #cc3399; font-size: 14px; padding-bottom: 5px;">
{% if obj.get_event_place_name %}
<table>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="padding-right: 9px;"><img src="cid:marker" alt="" style="display: inline-block; vertical-align: middle; margin-right: 4px; margin-top: -2px;"></td>
<td>{{ obj.get_event_place_name }}</td>
@ -242,7 +242,7 @@
</table>
{% endwith %}
{% endfor %}
<table style="width: 100%;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td align="center" style="padding-top: 25px;">
<a href="http://{{ domain }}{% url 'events:main' %}?{{ moscow_filter_url }}" style="display: inline-block; padding: 8px 23px 7px 29px; border: 1px solid #ff6600; color: #ffffff; background-color: #ff6600; text-decoration: none; text-transform: uppercase; font-size: 12px; line-height: 12px; border-radius: 5px;">{% trans "посмотреть все" %}<img src="cid:white_arrow" alt=""></a>
@ -262,20 +262,20 @@
{% if russia %}
<!-- RF -->
<table border="0" cellspacing="0" style="width:100%;">
<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
<tr>
<td style="background-color: #f8f8f6; padding: 30px 0px 40px 0px;">
<table border="0" cellspacing="0" style="width: 600px; margin: 0 auto;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 600px; margin: 0 auto;">
<tr>
<td>
<table style="width: 100%;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td align="center" style="color: #333333; font-size: 28px; font-weight: bold; text-transform: uppercase; padding-bottom: 15px;">{% trans "В России" %}</td>
</tr>
</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 #e6e6e5;{% endif %}">
<table cellspacing="0" cellpadding="0" border="0" 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">
@ -285,15 +285,15 @@
</a>
</td>
<td style="padding-left: 20px; width: 470px;">
<table style="width: 100%;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
{% if forloop.first %}
<td style="font-size: 13px; text-transform: uppercase; padding-bottom: 5px; color: #99cc66;">
{% if obj.get_event_place_name %}
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="cid:m3" alt=""></td>
<td style="padding-right: 7px;">{{ obj.get_event_place_name }}</td>
<td style="padding-right: 7px;"><img src="cid:m3" alt=""></td>
<td>{{ obj.get_event_place_name }}</td>
</tr>
</table>
{% endif %}
@ -354,7 +354,7 @@
{% endwith %}
{% endfor %}
<table style="width: 100%;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td align="center" style="padding-top: 25px;">
<a href="http://{{ domain }}{% url 'events:main' %}?{{ russia_filter_url }}" style="display: inline-block; padding: 8px 23px 7px 29px; border: 1px solid #ff6600; color: #ffffff; background-color: #ff6600; text-decoration: none; text-transform: uppercase; font-size: 12px; line-height: 12px; border-radius: 5px;">{% trans "все события" %}<img src="cid:white_arrow" alt=""></a>
@ -374,22 +374,22 @@
{% if foreign %}
<!-- foreign -->
<table border="0" cellspacing="0" style="width:100%; background-color: #fff; border-top: 1px solid #f3f3f3; border-bottom: 1px solid #f3f3f3;">
<table cellspacing="0" cellpadding="0" border="0" style="width:100%; background-color: #fff; border-top: 1px solid #f3f3f3; border-bottom: 1px solid #f3f3f3;">
<tr>
<td>
<table style="width: 600px; margin: 0 auto;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 600px; margin: 0 auto;">
<tr>
<td align="center" style="padding-top: 45px; padding-bottom: 30px; font-family: Arial, sans-serif; font-size: 25px; color: #333333; text-transform: uppercase; font-weight: bold;">{% trans "За рубежом" %}</td>
</tr>
<tr>
<td>
<table style="width: 100%;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
{% for sqs_obj in foreign %}
{% with sqs_obj.object as obj %}
<td valign="top">
<table style="width: 130px; margin: 0 auto;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 130px; margin: 0 auto;">
<tr>
<td style="padding-bottom: 15px; text-align: center;">
<a href="http://{{ domain }}{{ obj.get_permanent_url }}" class="foreign_image">
@ -448,10 +448,10 @@
{% if news %}
<!-- Новости событий -->
<table style="width: 100%;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td>
<table style="width: 600px; margin: 0 auto;">
<table cellspacing="0" cellpadding="0" border="0" 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>
@ -461,7 +461,7 @@
</td>
<td valign="top" style="padding-right: 15px;">
<table>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="padding-bottom: 8px;"><a href="http://{{ domain }}{{ news.get_permanent_url }}" class="event_title">{{ news.main_title|safe }}</a></td>
</tr>
@ -491,10 +491,10 @@
{% if blog %}
<!-- Новенькое из блога -->
<table style="width: 100%;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td style="padding-bottom: 40px;">
<table style="width: 600px; margin: 0 auto;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 600px; margin: 0 auto;">
<tr>
<td colspan="2" align="center" style="padding-top: 30px; padding-bottom: 30px; font-family: Arial, sans-serif; font-size: 30px; font-weight: bold; text-transform: uppercase; color: #333333">{% trans "Новенькое из блога" %}</td>
</tr>
@ -506,7 +506,7 @@
</td>
<td valign="top" style="padding-right: 15px;">
<table>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="padding-bottom: 15px;" valign="top"><a href="http://{{ domain }}{{ blog.get_permanent_url }}" class="event_title">{{ blog.main_title|safe }}</a></td>
</tr>
@ -531,10 +531,10 @@
<!-- Ссылки на соцсети -->
<table width="100%" style="background-color: #ffffff; border-top: 1px solid #f3f3f3; border-bottom: 1px solid #f3f3f3;">
<table cellspacing="0" cellpadding="0" border="0" width="100%" style="background-color: #ffffff; border-top: 1px solid #f3f3f3; border-bottom: 1px solid #f3f3f3;">
<tr>
<td>
<table border="0" cellpadding="0" style="width: 600px; margin: 0 auto;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 600px; margin: 0 auto;">
<tr>
<td align="center" style="width: 240px; font-family: Arial, sans-serif; font-size: 17px; font-weight: bold; color: #333333; text-transform: uppercase;">{% trans "Следуйте за нами" %}:
</td>
@ -555,7 +555,7 @@
<!-- Управление подпиской -->
<table cellpadding="0" cellspacing="0" width="600px; margin: 0 auto;">
<table cellspacing="0" cellpadding="0" border="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>
@ -573,13 +573,13 @@
<!-- Thanks -->
<table cellpadding="0" cellspacing="0" style="width: 100%; background-color: #ffffff;">
<table cellspacing="0" cellpadding="0" border="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;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 600px; margin: 0 auto;">
<tr>
<td align="center" style="width: 50%; border-right: 1px solid #ff6900;">
<table>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="padding-bottom: 26px;"><img src="cid:site_logo" alt=""></td>
</tr>
@ -591,7 +591,7 @@
</td>
<td style="padding-left: 20px; padding-right: 20px;">
<table>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td style="font-family: Arial, sans-serif; color: #333333; font-size: 14px; line-height: 1.5; padding-top: 10px;">
{% trans "Поисковик деловых событий" %} <br>
@ -617,10 +617,10 @@
<!-- Menu -->
<table style="width: 100%; border-top: 1px solid #f3f3f3; border-bottom: 1px solid #f3f3f3;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-top: 1px solid #f3f3f3; border-bottom: 1px solid #f3f3f3;">
<tr>
<td style="font-size: 15px;color: #666666;">
<table style="width: 600px; margin: 0 auto;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 600px; margin: 0 auto;">
<tr>
<td style="padding-top: 15px; padding-bottom: 15px; padding-left: 15px;" align="center"><a href="http://{{ domain }}/expo/" style="font-size: 15px;color: #666666; text-decoration: none;">{% trans "Выставки" %}</a></td>
<td>/</td>
@ -639,7 +639,7 @@
<!-- footer -->
<table style="width: 100%; background-color: #ffffff; border-top: 1px solid #f3f3f3;">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%; background-color: #ffffff; border-top: 1px solid #f3f3f3;">
<tr>
<td style="padding-top: 35px; padding-left: 20px; padding-right: 20px; font-family: Arial, sans-serif; font-size: 13px; color: #999999; padding-bottom: 7px;" align="center">{% trans "Вы получили это письмо, так как подписаны на рассылку" %} <a href="#" style="color: #ff6600;">https://www.expomap.ru</a></td>
</tr>

Loading…
Cancel
Save