From 8ab782a7c3446f0b3296a0f0caac73fd9f1bef71 Mon Sep 17 00:00:00 2001 From: ya_dim4ik Date: Thu, 22 Dec 2016 17:55:47 +0200 Subject: [PATCH] email fixes --- .../newsletter/AutomaticEmail_v2.html | 102 ++++++++++-------- 1 file changed, 55 insertions(+), 47 deletions(-) diff --git a/emencia/django/newsletter/templates/newsletter/AutomaticEmail_v2.html b/emencia/django/newsletter/templates/newsletter/AutomaticEmail_v2.html index 677975c4..633ee3ae 100644 --- a/emencia/django/newsletter/templates/newsletter/AutomaticEmail_v2.html +++ b/emencia/django/newsletter/templates/newsletter/AutomaticEmail_v2.html @@ -72,12 +72,6 @@ - {% comment %} - - - - {% endcomment %} -
 
@@ -122,22 +116,22 @@ - - @@ -264,8 +258,6 @@
- {{ obj.name|safe }} + {{ obj.name|safe }}
+ {{ obj.main_title|safe }}
+ - +
{{ obj.get_dates_v2 }}{% if obj.get_event_place_name %}, {{ obj.get_event_place_name }}{% endif %}{{ obj.get_dates_v2 }}
{% endif %} - - {% if russia %} @@ -348,6 +340,7 @@ @@ -374,8 +367,6 @@
+ {# TODO: Подставить href в ссылку #} {% trans "подробнее" %}
{% endif %} - - {% if foreign %} @@ -453,53 +444,70 @@ {# -------------- БАНЕР --------------- #} {% if newsletter.banner %} - +
+ + + +
{% endif %} {% if news %} -
- - - - - - - - +
{% trans "Новости событий" %}
- - - + - -
+ - - - - + + - + + + + - + -
{{ news.main_title|safe }}
- - - - - -
{{ news.publish_date|date:"d E Y" }}
-
{% trans "Новости событий" %}
{{ news.preview|safe|truncatewords_html:25 }} + {# TODO: Сделать картинку 170х170 #} + + + + + + + + + + + + + + + + + + +
{{ news.main_title|safe }}
+ + + + + +
{{ news.publish_date|date:"d E Y" }}
+
{{ news.preview|safe|truncatewords_html:25 }}
+ {# TODO: Подставить href в ссылку #} + {% trans "подробнее" %} +
+
- {% trans "Все новости" %} - + {% trans "Все новости" %} +
-
-
+
+
{% endif %}