mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-01-19 06:10:34 +00:00
29 lines
2.2 KiB
Django/Jinja
29 lines
2.2 KiB
Django/Jinja
{% if current_user.is_authenticated %}
|
|
<ul class="tabs tabs-transparent">
|
|
<li class="tab disabled"><a><i class="material-icons left">explore</i>Roadmap</a></li>
|
|
<li class="tab"><a{%if request.path == url_for('services.service', service='file-setup') %} class="active"{% endif %} href="{{ url_for('services.service', service='file-setup') }}" target="_self">File setup</a></li>
|
|
<li class="tab disabled"><i class="material-icons">navigate_next</i></li>
|
|
<li class="tab"><a{%if request.path == url_for('services.service', service='ocr') %} class="active"{% endif %} href="{{ url_for('services.service', service='ocr') }}" target="_self">OCR</a></li>
|
|
<li class="tab disabled"><i class="material-icons">navigate_next</i></li>
|
|
<li class="tab"><a{%if request.path == url_for('services.service', service='nlp') %} class="active"{% endif %} href="{{ url_for('services.service', service='nlp') }}" target="_self">NLP</a></li>
|
|
<li class="tab disabled"><i class="material-icons">navigate_next</i></li>
|
|
<li class="tab"><a{%if request.path == url_for('corpora.add_corpus') %} class="active"{% endif %} href="{{ url_for('corpora.add_corpus') }}" target="_self">Add corpus</a></li>
|
|
<li class="tab disabled"><i class="material-icons">navigate_next</i></li>
|
|
{% if corpus %}
|
|
<li class="tab"><a{%if request.path == url_for('corpora.add_corpus_file', corpus_id=corpus.id) %} class="active"{% endif %} href="{{ url_for('corpora.add_corpus_file', corpus_id=corpus.id) }}" target="_self">Add corpus file(s)</a></li>
|
|
{% else %}
|
|
<li class="tab disabled tooltipped" data-tooltip="Select a corpus first"><a>Add corpus file(s)</a></li>
|
|
{% endif %}
|
|
<li class="tab disabled"><i class="material-icons">navigate_next</i></li>
|
|
{% if corpus %}
|
|
{% if corpus.files.all() %}
|
|
<li class="tab"><a{%if request.path == url_for('corpora.analyse_corpus', corpus_id=corpus.id) %} class="active"{% endif %} href="{{ url_for('corpora.analyse_corpus', corpus_id=corpus.id) }}" target="_self">Corpus analysis</a></li>
|
|
{% else %}
|
|
<li class="tab disabled tooltipped" data-tooltip="Add at least one corpus file first"><a>Corpus analysis</a></li>
|
|
{% endif %}
|
|
{% else %}
|
|
<li class="tab disabled tooltipped" data-tooltip="Select a corpus first"><a>Corpus analysis</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
{% endif %}
|