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');
|
2023-10-11 14:20:17 +00:00
|
|
|
let corpusList = new ResourceLists.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 %}
|