From f7d2f25d108a8b64e4a8e74da3fb6119e7a24d7b Mon Sep 17 00:00:00 2001 From: Alexander Burdeinyi Date: Mon, 5 Dec 2016 21:41:30 +0200 Subject: [PATCH] m --- emencia/django/newsletter/models.py | 1 + .../templates/newsletter/AutomaticEmail.html | 30 +++++++++---------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/emencia/django/newsletter/models.py b/emencia/django/newsletter/models.py index 6a3899af..c977a591 100644 --- a/emencia/django/newsletter/models.py +++ b/emencia/django/newsletter/models.py @@ -633,6 +633,7 @@ class Newsletter(models.Model): slug = models.SlugField(help_text=_('Used for displaying the newsletter on the site.'), unique=True) dailymail = models.BooleanField(_(u'Ежедневная рассылка'), blank=True, default=False) + # banner = models.ImageField(_(u'Баннер')) creation_date = models.DateTimeField(_('creation date'), auto_now_add=True) modification_date = models.DateTimeField(_('modification date'), auto_now=True) diff --git a/emencia/django/newsletter/templates/newsletter/AutomaticEmail.html b/emencia/django/newsletter/templates/newsletter/AutomaticEmail.html index d0c53622..a932e75e 100644 --- a/emencia/django/newsletter/templates/newsletter/AutomaticEmail.html +++ b/emencia/django/newsletter/templates/newsletter/AutomaticEmail.html @@ -84,7 +84,7 @@ - + @@ -156,7 +156,7 @@
- + {% comment %} {% thumbnail obj.get_logo '281x225' as im %} @@ -102,7 +102,7 @@
{{ obj.name|safe }}{{ obj.name|safe }}
- + {% comment %} {% thumbnail obj.get_logo '109x114' as im %} @@ -166,7 +166,7 @@ - + @@ -229,7 +229,7 @@
{{ obj.name|safe }}{{ obj.name|safe }}
- + @@ -264,7 +264,7 @@
- + {% comment %} {% thumbnail obj.get_logo '109x114' as im %} @@ -248,7 +248,7 @@
{{ obj.name|safe }}{{ obj.name|safe }}
- {% trans "подробнее" %} + {% trans "подробнее" %}
@@ -305,7 +305,7 @@ - +
- + {% comment %} {% thumbnail obj.get_logo '109x114' as im %} @@ -322,7 +322,7 @@
{{ obj.name|safe }}{{ obj.name|safe }}
@@ -399,7 +399,7 @@
- + {% comment %} {% thumbnail news.logo "272x195" as im %} @@ -412,16 +412,16 @@ - + - +
{{ news.main_title|safe }}{{ news.main_title|safe }}
- {# С 1 по 4 сентября #} + {{ news.publish_date|date:"d E Y" }}
{{ news.preview|safe }}{{ news.preview|safe|truncatechars_html:60 }}
@@ -451,7 +451,7 @@
- + {% comment %} {% thumbnail blog.logo "272x195" as im %} @@ -462,7 +462,7 @@ - +
{{ blog.main_title|safe }}{{ blog.main_title|safe }}