nopaque/app/templates/admin/corpora.html.j2

30 lines
688 B
Plaintext
Raw Permalink Normal View History

2023-03-21 09:50:29 +00:00
{% extends "base.html.j2" %}
{% block page_content %}
<div class="container">
<h1 id="title">{{ title }}</h1>
<div class="card">
<div class="card-content">
<div class="corpus-list no-autoinit" id="corpus-list"></div>
</div>
</div>
</div>
</div>
{% endblock page_content %}
{% block scripts %}
{{ super() }}
<script>
let corpusListElement = document.querySelector('#corpus-list');
let corpusList = new nopaque.resource_lists.CorpusList(corpusListElement);
2023-03-23 16:42:51 +00:00
corpusList.add(
[
{% for corpus in corpora %}
2023-06-07 09:23:59 +00:00
{{ corpus.to_json_serializeable(backrefs=True,relationships=True)|tojson }},
2023-03-23 16:42:51 +00:00
{% endfor %}
]
);
2023-03-21 09:50:29 +00:00
</script>
{% endblock scripts %}