Closed johangiraud closed 6 years ago
Here I need help to close :
translation
is undefined in users/edit.html. How can I define it? @vinyll @davidbgk
I guess it just needs to be declared somewhere in the helper.js
or so? @vinyll
@cafebabel-webmaster: I'm not certain I understand your issue well.
{% macro contribution_list() %}
should probably {% macro contribution_list(articles, type) %}
where type
can be "translations" or "articles" and articles
can be a list of translations or of articles.
No, I need it to be both at the same time: article list and translation list. Exactly the way it works in user/detail
actually @vinyll
The translations and the articles are not mixed in the HTML. In users/details.html, you can do:
…
{% macro contribution_list(articles, 'articles') %}
…
{% macro contribution_list(translations, 'translations') %}
…
Ok I try
No, because in {{ contribution_list(articles, 'articles' }}
I would need translations
variable too and the other way around.
You're getting into the next step in Python! 🐍
You're getting into the next step in Python! 🐍
Yeah!
translation
is undefined in users/edit.html. How can I define it? @vinyll @davidbgk