mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Show static visualizations only on overview page
This commit is contained in:
parent
9da1a6e987
commit
e46f0032bd
@ -63,7 +63,7 @@ class CorpusAnalysisApp {
|
|||||||
|
|
||||||
// Initialize extensions
|
// Initialize extensions
|
||||||
for (const extension of Object.values(this.extensions)) {
|
for (const extension of Object.values(this.extensions)) {
|
||||||
statusTextElement.innerHTML += `<br>Initializing extension ${extension.name}...`;
|
statusTextElement.innerHTML += `<br>Initializing ${extension.name} extension...`;
|
||||||
await extension.init();
|
await extension.init();
|
||||||
statusTextElement.innerText += ' Done'
|
statusTextElement.innerText += ' Done'
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{% import "materialize/wtf.html.j2" as wtf %}
|
{% import "materialize/wtf.html.j2" as wtf %}
|
||||||
{% import 'corpora/_analysis/concordance.html.j2' as concordance_extension %}
|
{% import 'corpora/_analysis/concordance.html.j2' as concordance_extension %}
|
||||||
{% import 'corpora/_analysis/reader.html.j2' as reader_extension %}
|
{% import 'corpora/_analysis/reader.html.j2' as reader_extension %}
|
||||||
{% import 'corpora/_analysis/static_visualization.html.j2' as static_visualization_extension%}
|
{% import 'corpora/_analysis/static_visualization.html.j2' as static_visualization_extension %}
|
||||||
|
|
||||||
{% set extensions = [concordance_extension, reader_extension, static_visualization_extension] %}
|
{% set extensions = [concordance_extension, reader_extension, static_visualization_extension] %}
|
||||||
{% block main_attribs %} class="service-scheme" data-service="corpus-analysis" id="corpus-analysis-app-container"{% endblock main_attribs %}
|
{% block main_attribs %} class="service-scheme" data-service="corpus-analysis" id="corpus-analysis-app-container"{% endblock main_attribs %}
|
||||||
@ -32,10 +32,12 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{ static_visualization_extension.container_content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% for extension in extensions %}
|
{% for extension in extensions if extension.name != 'Static Visualization' %}
|
||||||
<div id="{{ extension.id_prefix }}-container">
|
<div id="{{ extension.id_prefix }}-container">
|
||||||
{{ extension.container_content }}
|
{{ extension.container_content }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user