diff default/blog/articles.html @ 38:f371bc50ea45

blog/articles: added context when importing comment, so csrf_token is transmited to the macro.
author Goffi <goffi@goffi.org>
date Tue, 11 Jul 2017 07:47:18 +0200
parents 8fa2fd2e928e
children f8798d691acf
line wrap: on
line diff
--- a/default/blog/articles.html	Mon Jul 10 19:11:34 2017 +0200
+++ b/default/blog/articles.html	Tue Jul 11 07:47:18 2017 +0200
@@ -1,5 +1,5 @@
 {% if not embedded %}{% extends 'base/base.html' %}{% endif %}
-{% import 'input/comment.html' as comment %}
+{% import 'input/comment.html' as comment with context %}
 
 {% macro show_items(items, comments=False) %}
     {# show items and comments items if present after each item,