Mercurial > libervia-templates
changeset 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 | eb9a42fca6c8 |
children | 9abef4a23af0 |
files | default/blog/articles.html |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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,