From bde512904fa7b779c19293ded9029afc0d35bee1 Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Thu, 23 Feb 2017 10:27:53 +0100 Subject: [PATCH] Article page --- .../home/templates/home/article_page.html | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 publichealth/home/templates/home/article_page.html diff --git a/publichealth/home/templates/home/article_page.html b/publichealth/home/templates/home/article_page.html new file mode 100644 index 0000000..c8be73d --- /dev/null +++ b/publichealth/home/templates/home/article_page.html @@ -0,0 +1,37 @@ +{% extends "base.html" %} +{% load wagtailcore_tags %} + +{% block body_class %}template-{{ self.get_verbose_name|slugify }}{% endblock %} + +{% block content %} +
+
+ +
+ {% include_block feed_image %} +
+ +

{{ page.trans_title }}

+ +

{{ page.trans_intro|richtext }}

+ +

{{ page.date }}

+ + +
+ + {% for block in page.trans_body %} + {% if block.block_type == 'heading' %} +

{{ block.value }}

+ {% else %} +

+ {% include_block block %} +

+ {% endif %} + {% endfor %} + +
+
+
+ +{% endblock %}