message.html 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. {% load thumbnail i18n %}<!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>{{ newsletter.title }}: {{ message.title }}</title>
  6. </head>
  7. <body>
  8. <h1>{{ newsletter.title }}</h1>
  9. <h2>{{ message.title }}</h2>
  10. {% for article in message.articles.all %}
  11. <h3>{{ article.title }}</h3>
  12. {% thumbnail article.image "200x200" as image %}
  13. <img src="http://{{ site.domain }}{{ image.url }}" width="{{ image.width }}" height="{{ image.height }}">
  14. {% endthumbnail %}
  15. <div>{{ article.text|safe }}</div>
  16. {% if article.url %}
  17. <div><a href="{{ article.url }}">{% trans "Read more" %}</a></div>
  18. {% endif %}
  19. {% endfor %}
  20. <ul>
  21. {% if submission.publish %}
  22. <li><a href="http://{{ site.domain }}{{ submission.get_absolute_url }}">{% trans "Read message online" %}</a></li>
  23. {% endif %}
  24. <li><a href="http://{{ site.domain }}{% url "newsletter_unsubscribe_request" newsletter.slug %}">{% trans "Unsubscribe" %}</a></li>
  25. </ul>
  26. </body>
  27. </html>