summaryrefslogtreecommitdiff
path: root/templates/newsletter/message/message.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/newsletter/message/message.html')
-rw-r--r--templates/newsletter/message/message.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/templates/newsletter/message/message.html b/templates/newsletter/message/message.html
new file mode 100644
index 0000000..8929b67
--- /dev/null
+++ b/templates/newsletter/message/message.html
@@ -0,0 +1,32 @@
+{% load thumbnail i18n %}<!DOCTYPE html>
+
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>{{ newsletter.title }}: {{ message.title }}</title>
+</head>
+<body>
+ <h1>{{ newsletter.title }}</h1>
+ <h2>{{ message.title }}</h2>
+ {% for article in message.articles.all %}
+ <h3>{{ article.title }}</h3>
+
+ {% thumbnail article.image "200x200" as image %}
+ <img src="http://{{ site.domain }}{{ image.url }}" width="{{ image.width }}" height="{{ image.height }}">
+ {% endthumbnail %}
+
+ <div>{{ article.text|safe }}</div>
+
+ {% if article.url %}
+ <div><a href="{{ article.url }}">{% trans "Read more" %}</a></div>
+ {% endif %}
+ {% endfor %}
+
+ <ul>
+ {% if submission.publish %}
+ <li><a href="http://{{ site.domain }}{{ submission.get_absolute_url }}">{% trans "Read message online" %}</a></li>
+ {% endif %}
+ <li><a href="http://{{ site.domain }}{% url "newsletter_unsubscribe_request" newsletter.slug %}">{% trans "Unsubscribe" %}</a></li>
+ </ul>
+</body>
+</html>