')|
+ replace('
','
')|
+ replace('
','
')|
+ replace('
','
@@ -68,57 +62,44 @@ ')|
+ safe|truncate}}
+
+
+ {% endfor %}
INTERVIEWS
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- By Author Name -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam interdum magna a purus ultricies varius.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- By Author Name -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam interdum magna a purus ultricies varius.
-
-
-
-
+ {% for interview in interviews %}
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- By Author Name -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam interdum magna a purus ultricies varius.
-
+
+
{{interview.title}}
+ {{interview.body| + replace('','
')|
+ replace('
','
')|
+ replace('
','
')|
+ replace('
','
+
')|
+ safe|truncate}}
+
+
+ {% endfor %}
STATISTICS
+ +
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- By Author Name -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam interdum magna a purus ultricies varius.
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- By Author Name -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam interdum magna a purus ultricies varius.
-
-
-
-
+ {% for stat in stats %}
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- By Author Name -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam interdum magna a purus ultricies varius.
-
+
+
{{stat.title}}
+ {{stat.body| + replace('','
')|
+ replace('
','
')|
+ replace('
','
')|
+ replace('", methods=["GET"])
def pr6_articles(slug):
','
diff --git a/pmg/views.py b/pmg/views.py
index 37d412da..be2c426e 100644
--- a/pmg/views.py
+++ b/pmg/views.py
@@ -1999,7 +1999,19 @@ def stats_review(stat):
@app.route("/6th-parliament-review", methods=["GET"])
def pr6():
- return render_template("pr6/landing.html")
+ articles = Page.query.filter(Page.slug.like('%pr6-articles-%'))
+ interviews = Page.query.filter(Page.slug.like('%pr6-interviews-%'))
+ stats = Page.query.filter(Page.slug.like('%pr6-statistics-%'))
+
+ articles = articles.all()
+ interviews = interviews.all()
+ stats = stats.all()
+
+ return render_template("pr6/landing.html",
+ articles=articles,
+ interviews=interviews,
+ stats=stats
+ )
@app.route("/6th-parliament-review/articles/')|
+ safe|truncate}}
+
+
+ {% endfor %}