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 CorpusList(corpusListElement);
|
2023-03-23 16:42:51 +00:00
|
|
|
corpusList.add(
|
|
|
|
[
|
|
|
|
{% for corpus in corpora %}
|
2023-03-28 12:11:46 +00:00
|
|
|
{{ corpus.to_json_serializeable(backrefs=True)|tojson }},
|
2023-03-23 16:42:51 +00:00
|
|
|
{% endfor %}
|
|
|
|
]
|
|
|
|
);
|
2023-03-21 09:50:29 +00:00
|
|
|
</script>
|
|
|
|
{% endblock scripts %}
|