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

95 lines
3.2 KiB
Plaintext
Raw Permalink Normal View History

{% extends "base.html.j2" %}
{% import "materialize/wtf.html.j2" as wtf %}
2023-04-27 13:11:18 +00:00
{% import 'corpora/_analysis/concordance.html.j2' as concordance_extension %}
{% import 'corpora/_analysis/reader.html.j2' as reader_extension %}
{% import 'corpora/_analysis/static_visualization.html.j2' as static_visualization_extension %}
2023-08-08 14:00:05 +00:00
{% block main_attribs %} class="service-scheme" data-service="corpus-analysis" id="corpus-analysis-container"{% endblock main_attribs %}
{% block page_content %}
2023-08-08 14:00:05 +00:00
<ul class="row tabs no-autoinit" id="corpus-analysis-extension-tabs">
<li class="tab col s3">
<a class="active" href="#corpus-analysis-home-container"><i class="nopaque-icons service-icons left" data-service="corpus-analysis"></i>Corpus analysis</a>
</li>
<li class="tab col s3">
2023-08-08 14:00:05 +00:00
<a href="#corpus-analysis-concordance-container"><i class="material-icons left">{{ concordance_extension.icon }}</i>{{ concordance_extension.name }}</a>
</li>
<li class="tab col s3">
<a href="#corpus-analysis-reader-container"><i class="material-icons left">{{ reader_extension.icon }}</i>{{ reader_extension.name }}</a>
</li>
2021-11-16 14:23:57 +00:00
</ul>
2023-08-08 14:00:05 +00:00
<div id="corpus-analysis-home-container">
2023-07-13 10:42:47 +00:00
<h1>{{ title }}</h1>
2021-11-16 14:23:57 +00:00
2023-08-08 14:00:05 +00:00
<div class="row" id="corpus-analysis-extension-cards">
<div class="col s3">
<div class="card extension-selector hoverable" data-target="corpus-analysis-concordance-container">
<div class="card-content">
<span class="card-title">{{ concordance_extension.name }}</span>
<p>{{ concordance_extension.description }}</p>
</div>
</div>
</div>
2023-06-14 11:57:58 +00:00
<div class="col s3">
2023-08-08 14:00:05 +00:00
<div class="card extension-selector hoverable" data-target="corpus-analysis-reader-container">
2023-06-14 11:57:58 +00:00
<div class="card-content">
2023-08-08 14:00:05 +00:00
<span class="card-title">{{ reader_extension.name }}</span>
<p>{{ reader_extension.description }}</p>
2023-06-14 11:57:58 +00:00
</div>
</div>
</div>
2023-06-13 13:41:34 +00:00
</div>
2023-08-08 14:00:05 +00:00
{{ static_visualization_extension.container_content() }}
2023-06-13 13:41:34 +00:00
</div>
2023-08-08 14:00:05 +00:00
<div id="corpus-analysis-concordance-container">
2023-08-08 14:08:58 +00:00
{{ concordance_extension.container_content() }}
</div>
<div id="corpus-analysis-reader-container">
{{ reader_extension.container_content() }}
</div>
2020-10-29 13:45:55 +00:00
{% endblock page_content %}
2020-04-02 12:22:03 +00:00
2021-11-16 14:23:57 +00:00
{% block modals %}
2020-10-29 13:45:55 +00:00
{{ super() }}
2023-08-08 14:00:05 +00:00
<div class="modal no-autoinit" id="corpus-analysis-init-modal">
2021-11-16 14:23:57 +00:00
<div class="modal-content">
<h4>We are preparing your analysis session</h4>
<p>
Our server works as hard as it can to prepare your analysis session. Please be patient and give it some time.<br>
If initialization takes longer than usual or an error occurs, <a onclick="window.location.reload()" href="#">reload the page</a>.
2021-11-16 14:23:57 +00:00
</p>
<div class="progress">
2021-11-16 14:23:57 +00:00
<div class="indeterminate"></div>
</div>
<p class="status-text"></p>
<p class="errors error-color-text hide"></p>
2022-05-17 13:31:05 +00:00
</div>
</div>
2022-10-20 13:52:25 +00:00
2023-08-08 14:00:05 +00:00
{{ concordance_extension.modals() }}
{{ reader_extension.modals() }}
{{ static_visualization_extension.modals() }}
2021-11-16 14:23:57 +00:00
{% endblock modals %}
2020-08-21 14:33:47 +00:00
2021-11-16 14:23:57 +00:00
{% block scripts %}
{{ super() }}
<script>
2023-11-13 11:59:36 +00:00
const corpusAnalysisApp = new nopaque.corpus_analysis.App({{ corpus.hashid|tojson }});
</script>
2021-12-09 14:39:45 +00:00
2023-08-08 14:00:05 +00:00
{{ concordance_extension.scripts() }}
{{ reader_extension.scripts() }}
{{ static_visualization_extension.scripts() }}
<script>
corpusAnalysisApp.init();
</script>
2021-11-16 14:23:57 +00:00
{% endblock scripts %}