mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Fix macro problems in corpus analysis
This commit is contained in:
parent
3b390858ff
commit
661ac7c509
@ -7,7 +7,7 @@
|
|||||||
{% set description = 'Query your corpus with the CQP query language utilizing a KWIC view.' %}
|
{% set description = 'Query your corpus with the CQP query language utilizing a KWIC view.' %}
|
||||||
|
|
||||||
|
|
||||||
{% macro container_element(id_prefix) %}
|
{% macro container_content(id_prefix) %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -187,4 +187,4 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endset %}
|
{% endmacro %}
|
||||||
|
@ -1,12 +1,15 @@
|
|||||||
|
{# The extension icon #}
|
||||||
|
{% set icon = '' %}
|
||||||
|
|
||||||
|
{# The extension name #}
|
||||||
{% set name = 'Static Visualization (beta)' %}
|
{% set name = 'Static Visualization (beta)' %}
|
||||||
|
|
||||||
|
{# The extension description #}
|
||||||
{% set description = '' %}
|
{% set description = '' %}
|
||||||
|
|
||||||
{% set id_prefix = name.lower().replace(' ', '-') + '-extension' %}
|
|
||||||
|
|
||||||
{% set tab_content = '' %}
|
{# The extension container content #}
|
||||||
|
{% macro container_content(id_prefix) %}
|
||||||
{% set container_content %}
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col s12">
|
<div class="col s12">
|
||||||
<h4><i class="material-icons left">query_stats</i>{{ name }}</h4>
|
<h4><i class="material-icons left">query_stats</i>{{ name }}</h4>
|
||||||
@ -119,9 +122,9 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endset %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% set modals %}
|
{% macro modals(id_prefix) %}
|
||||||
<div class="modal modal-fixed-footer" id="frequencies-stopwords-setting-modal">
|
<div class="modal modal-fixed-footer" id="frequencies-stopwords-setting-modal">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<h4>Settings</h4>
|
<h4>Settings</h4>
|
||||||
@ -151,11 +154,11 @@
|
|||||||
<a class="modal-close waves-effect waves-green btn frequencies-stopword-setting-modal-action-buttons" data-action="cancel">Cancel</a>
|
<a class="modal-close waves-effect waves-green btn frequencies-stopword-setting-modal-action-buttons" data-action="cancel">Cancel</a>
|
||||||
<a class="modal-close waves-effect waves-green btn frequencies-stopword-setting-modal-action-buttons" data-action="submit">Submit</a>
|
<a class="modal-close waves-effect waves-green btn frequencies-stopword-setting-modal-action-buttons" data-action="submit">Submit</a>
|
||||||
</div>
|
</div>
|
||||||
{% endset %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% set scripts %}
|
{% macro scripts(id_prefix) %}
|
||||||
<script>
|
<script>
|
||||||
const corpusAnalysisStaticVisualization = new CorpusAnalysisStaticVisualization(corpusAnalysisApp);
|
const corpusAnalysisStaticVisualization = new CorpusAnalysisStaticVisualization(corpusAnalysisApp);
|
||||||
</script>
|
</script>
|
||||||
{% endset %}
|
{% endmacro %}
|
||||||
|
|
@ -21,7 +21,7 @@
|
|||||||
<li class="tab col s3"><a class="active" href="#corpus-analysis-app-home-container"><i class="nopaque-icons service-icons left" data-service="corpus-analysis"></i>Corpus analysis</a></li>
|
<li class="tab col s3"><a class="active" href="#corpus-analysis-app-home-container"><i class="nopaque-icons service-icons left" data-service="corpus-analysis"></i>Corpus analysis</a></li>
|
||||||
{% for id, extension in extensions.items() if extension.name != 'Static Visualization (beta)' %}
|
{% for id, extension in extensions.items() if extension.name != 'Static Visualization (beta)' %}
|
||||||
<li class="tab col s3">
|
<li class="tab col s3">
|
||||||
<a href="#{{ id }}-container"><i class="material-icons left">extension.icon</i>{{ extension.name }}</a>
|
<a href="#{{ id }}-container"><i class="material-icons left">{{ extension.icon }}</i>{{ extension.name }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
@ -42,7 +42,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ static_visualization_extension.container_content }}
|
{{ static_visualization_extension.container_content('static-visualizations-extension') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user