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

107 lines
3.6 KiB
Plaintext
Raw Normal View History

{% extends "base.html.j2" %}
2024-05-04 12:41:40 +00:00
{% import "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 %}
2024-05-21 08:29:12 +00:00
{% set navbar_extended = true %}
2024-05-21 08:29:12 +00:00
{% block stylesheets %}
{{ super() }}
2024-07-01 13:37:34 +00:00
<link href="{{ url_for('static', filename='css/pages/corpora/analysis.css') }}" rel="stylesheet">
2024-05-21 08:29:12 +00:00
{% endblock stylesheets %}
{% block navbar_secondary_content %}
<ul class="tabs tabs-transparent no-autoinit" id="corpus-analysis-extension-tabs">
<li class="tab">
<a class="active" href="#corpus-analysis-home-container"><i class="nopaque-icons service-icons left" data-service="corpus-analysis" style="line-height: inherit;"></i>Corpus analysis</a>
2023-08-08 14:00:05 +00:00
</li>
2024-05-21 08:29:12 +00:00
<li class="tab">
<a href="#corpus-analysis-concordance-container"><i class="material-icons left" style="line-height: inherit;">{{ concordance_extension.icon }}</i>{{ concordance_extension.name }}</a>
2023-08-08 14:00:05 +00:00
</li>
2024-05-21 08:29:12 +00:00
<li class="tab">
<a href="#corpus-analysis-reader-container"><i class="material-icons left" style="line-height: inherit;">{{ reader_extension.icon }}</i>{{ reader_extension.name }}</a>
</li>
2021-11-16 14:23:57 +00:00
</ul>
2024-05-21 08:29:12 +00:00
{% endblock navbar_secondary_content %}
2021-11-16 14:23:57 +00:00
2024-05-21 08:29:12 +00:00
{% block main_attribs %} class="service-color lighten" data-service="corpus-analysis" id="corpus-analysis-container" style="margin-top: 48px;"{% endblock main_attribs %}
{% block page_content %}
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 %}