normalize template parameters from database

This commit is contained in:
Patrick Jentsch committed 2023-03-28 14:11:46 +02:00
1 parent 09b3afc880
commit b41436c844
10 files changed
+195 -171

No files matched your search

+14 -2
View File
@@ -63,8 +63,20 @@
{{ super() }}
<script>
let userList = new UserList(document.querySelector('.user-list'));
userList.add({{ users|tojson }});
userList.add(
[
{% for user in users %}
{{ user.to_json_serializeable(relationships=True, filter_by_privacy_settings=True)|tojson }},
{% endfor %}
]
);
let publicCorpusList = new PublicCorpusList(document.querySelector('.public-corpus-list'));
publicCorpusList.add({{ corpora|tojson }});
publicCorpusList.add(
[
{% for corpus in corpora %}
{{ corpus.to_json_serializeable()|tojson }},
{% endfor %}
]
);
</script>
{% endblock scripts %}