SpaCy NLP Pipeline Models
Here you can see and edit the models that you have created. You can also create new models.
diff --git a/app/templates/contributions/spacy_nlp_pipeline_models/create_spacy_nlp_pipeline_model.html.j2 b/app/templates/contributions/create_spacy_nlp_pipeline_model.html.j2
similarity index 100%
rename from app/templates/contributions/spacy_nlp_pipeline_models/create_spacy_nlp_pipeline_model.html.j2
rename to app/templates/contributions/create_spacy_nlp_pipeline_model.html.j2
diff --git a/app/templates/contributions/tesseract_ocr_pipeline_models/create_tesseract_ocr_pipeline_model.html.j2 b/app/templates/contributions/create_tesseract_ocr_pipeline_model.html.j2
similarity index 100%
rename from app/templates/contributions/tesseract_ocr_pipeline_models/create_tesseract_ocr_pipeline_model.html.j2
rename to app/templates/contributions/create_tesseract_ocr_pipeline_model.html.j2
diff --git a/app/templates/contributions/spacy_nlp_pipeline_models/spacy_nlp_pipeline_model.html.j2 b/app/templates/contributions/spacy_nlp_pipeline_model.html.j2
similarity index 100%
rename from app/templates/contributions/spacy_nlp_pipeline_models/spacy_nlp_pipeline_model.html.j2
rename to app/templates/contributions/spacy_nlp_pipeline_model.html.j2
diff --git a/app/templates/contributions/spacy_nlp_pipeline_models/spacy_nlp_pipeline_models.html.j2 b/app/templates/contributions/spacy_nlp_pipeline_models.html.j2
similarity index 100%
rename from app/templates/contributions/spacy_nlp_pipeline_models/spacy_nlp_pipeline_models.html.j2
rename to app/templates/contributions/spacy_nlp_pipeline_models.html.j2
diff --git a/app/templates/contributions/tesseract_ocr_pipeline_models/tesseract_ocr_pipeline_model.html.j2 b/app/templates/contributions/tesseract_ocr_pipeline_model.html.j2
similarity index 100%
rename from app/templates/contributions/tesseract_ocr_pipeline_models/tesseract_ocr_pipeline_model.html.j2
rename to app/templates/contributions/tesseract_ocr_pipeline_model.html.j2
diff --git a/app/templates/contributions/tesseract_ocr_pipeline_models/tesseract_ocr_pipeline_models.html.j2 b/app/templates/contributions/tesseract_ocr_pipeline_models.html.j2
similarity index 100%
rename from app/templates/contributions/tesseract_ocr_pipeline_models/tesseract_ocr_pipeline_models.html.j2
rename to app/templates/contributions/tesseract_ocr_pipeline_models.html.j2
diff --git a/app/templates/corpora/_breadcrumbs.html.j2 b/app/templates/corpora/_breadcrumbs.html.j2
deleted file mode 100644
index bdbe0f34..00000000
--- a/app/templates/corpora/_breadcrumbs.html.j2
+++ /dev/null
@@ -1,28 +0,0 @@
-{# {% set breadcrumbs %}
-
navigate_next
-
My corpora
-
navigate_next
-{% if request.path == url_for('.create_corpus') %}
-
{{ title }}
-{% elif request.path == url_for('.import_corpus') %}
-
{{ title }}
-{% elif request.path == url_for('.corpus', corpus_id=corpus.id) %}
-
{{ corpus.title }}
-{% elif request.path == url_for('.analyse_corpus', corpus_id=corpus.id) %}
-
{{ corpus.title }}
-
navigate_next
-
{{ title }}
-{% elif request.path == url_for('.create_corpus_file', corpus_id=corpus.id) %}
-
{{ corpus.title }}
-
navigate_next
-
Corpus files
-
navigate_next
-
{{ title }}
-{% elif request.path == url_for('.corpus_file', corpus_file_id=corpus_file.id, corpus_id=corpus.id) %}
-
{{ corpus.title }}
-
navigate_next
-
Corpus files
-
navigate_next
-
{{ corpus_file.author }}: {{ corpus_file.title }} ({{ corpus_file.publishing_year }})
-{% endif %}
-{% endset %} #}
diff --git a/app/templates/corpora/corpus.html.j2 b/app/templates/corpora/corpus.html.j2
index 053dbdc0..f17e1e88 100644
--- a/app/templates/corpora/corpus.html.j2
+++ b/app/templates/corpora/corpus.html.j2
@@ -1,6 +1,5 @@
{% extends "base.html.j2" %}
{% import "materialize/wtf.html.j2" as wtf %}
-{% from "corpora/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% block main_attribs %} class="service-scheme" data-service="corpus-analysis"{% endblock main_attribs %}
diff --git a/app/templates/corpora/create_corpus.html.j2 b/app/templates/corpora/create_corpus.html.j2
index ccb49877..5feb7225 100644
--- a/app/templates/corpora/create_corpus.html.j2
+++ b/app/templates/corpora/create_corpus.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "corpora/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% import "materialize/wtf.html.j2" as wtf %}
{% block main_attribs %} class="service-scheme" data-service="corpus-analysis"{% endblock main_attribs %}
diff --git a/app/templates/corpora/files/corpus_file.html.j2 b/app/templates/corpora/files/corpus_file.html.j2
index 781ea059..28a762d4 100644
--- a/app/templates/corpora/files/corpus_file.html.j2
+++ b/app/templates/corpora/files/corpus_file.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "corpora/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% import "materialize/wtf.html.j2" as wtf %}
{% block main_attribs %} class="service-scheme" data-service="corpus-analysis"{% endblock main_attribs %}
diff --git a/app/templates/corpora/files/create_corpus_file.html.j2 b/app/templates/corpora/files/create_corpus_file.html.j2
index 8cff13a6..ff634294 100644
--- a/app/templates/corpora/files/create_corpus_file.html.j2
+++ b/app/templates/corpora/files/create_corpus_file.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "corpora/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% import "materialize/wtf.html.j2" as wtf %}
{% block main_attribs %} class="service-scheme" data-service="corpus-analysis"{% endblock main_attribs %}
diff --git a/app/templates/corpora/import_corpus.html.j2 b/app/templates/corpora/import_corpus.html.j2
index 957668e6..dd0806a7 100644
--- a/app/templates/corpora/import_corpus.html.j2
+++ b/app/templates/corpora/import_corpus.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "corpora/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% import "materialize/wtf.html.j2" as wtf %}
{% block main_attribs %} class="service-scheme" data-service="corpus-analysis"{% endblock main_attribs %}
diff --git a/app/templates/jobs/_breadcrumbs.html.j2 b/app/templates/jobs/_breadcrumbs.html.j2
deleted file mode 100644
index e3de43f3..00000000
--- a/app/templates/jobs/_breadcrumbs.html.j2
+++ /dev/null
@@ -1,8 +0,0 @@
-{% set breadcrumbs %}
-
navigate_next
-
My jobs
-{% if request.path == url_for('.job', job_id=job.id) %}
-
navigate_next
-
{{ job.title }}
-{% endif %}
-{% endset %}
diff --git a/app/templates/jobs/job.html.j2 b/app/templates/jobs/job.html.j2
index b5055ce6..51f2fc6d 100644
--- a/app/templates/jobs/job.html.j2
+++ b/app/templates/jobs/job.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "jobs/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% block main_attribs %} class="service-scheme" data-service="{{ job.service }}"{% endblock main_attribs %}
diff --git a/app/templates/main/_breadcrumbs.html.j2 b/app/templates/main/_breadcrumbs.html.j2
deleted file mode 100644
index d65978d6..00000000
--- a/app/templates/main/_breadcrumbs.html.j2
+++ /dev/null
@@ -1,14 +0,0 @@
-{% set breadcrumbs %}
-{% if not (request.path == url_for('.index')) %}
-
navigate_next
-{% endif %}
-{% if request.path == url_for('.faq') %}
-
Frequently Asked Questions
-{% elif request.path == url_for('.dashboard') %}
-
Dashboard
-{% elif request.path == url_for('.news') %}
-
News
-{% elif request.path == url_for('.terms_of_use') %}
-
Terms of use
-{% endif %}
-{% endset %}
diff --git a/app/templates/main/dashboard.html.j2 b/app/templates/main/dashboard.html.j2
index 5474db97..1598e139 100644
--- a/app/templates/main/dashboard.html.j2
+++ b/app/templates/main/dashboard.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "main/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% block page_content %}
diff --git a/app/templates/main/faq.html.j2 b/app/templates/main/faq.html.j2
index fb10e3b4..5c168007 100644
--- a/app/templates/main/faq.html.j2
+++ b/app/templates/main/faq.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "main/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% block page_content %}
diff --git a/app/templates/main/index.html.j2 b/app/templates/main/index.html.j2
index 74bfa306..7b80a794 100644
--- a/app/templates/main/index.html.j2
+++ b/app/templates/main/index.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "main/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% import "materialize/wtf.html.j2" as wtf %}
{% block page_content %}
diff --git a/app/templates/main/news.html.j2 b/app/templates/main/news.html.j2
index b8961b02..d1111d8b 100644
--- a/app/templates/main/news.html.j2
+++ b/app/templates/main/news.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "main/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% block page_content %}
diff --git a/app/templates/main/news_new.html.j2 b/app/templates/main/news_new.html.j2
index d3e2f9b6..d2b339e3 100644
--- a/app/templates/main/news_new.html.j2
+++ b/app/templates/main/news_new.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "main/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% block page_content %}
diff --git a/app/templates/main/privacy_policy.html.j2 b/app/templates/main/privacy_policy.html.j2
index ff22b10a..c55ae722 100644
--- a/app/templates/main/privacy_policy.html.j2
+++ b/app/templates/main/privacy_policy.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "main/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% block page_content %}
diff --git a/app/templates/main/terms_of_use.html.j2 b/app/templates/main/terms_of_use.html.j2
index baedd0a2..d61084d6 100644
--- a/app/templates/main/terms_of_use.html.j2
+++ b/app/templates/main/terms_of_use.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "main/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% block page_content %}
diff --git a/app/templates/main/user_manual.html.j2 b/app/templates/main/user_manual.html.j2
index 0da85809..2ef1da01 100644
--- a/app/templates/main/user_manual.html.j2
+++ b/app/templates/main/user_manual.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "main/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% block page_content %}
diff --git a/app/templates/services/_breadcrumbs.html.j2 b/app/templates/services/_breadcrumbs.html.j2
deleted file mode 100644
index a08beafa..00000000
--- a/app/templates/services/_breadcrumbs.html.j2
+++ /dev/null
@@ -1,16 +0,0 @@
-{% set breadcrumbs %}
-
navigate_next
-
Processes & Services
-
navigate_next
-{% if request.path == url_for('.corpus_analysis') %}
-
{{ title }}
-{% elif request.path == url_for('.file_setup_pipeline') %}
-
{{ title }}
-{% elif request.path == url_for('.spacy_nlp_pipeline') %}
-
{{ title }}
-{% elif request.path == url_for('.tesseract_ocr_pipeline') %}
-
{{ title }}
-{% elif request.path == url_for('.transkribus_htr_pipeline') %}
-
{{ title }}
-{% endif %}
-{% endset %}
diff --git a/app/templates/services/corpus_analysis.html.j2 b/app/templates/services/corpus_analysis.html.j2
index a7e3da8e..9ddc9ec3 100644
--- a/app/templates/services/corpus_analysis.html.j2
+++ b/app/templates/services/corpus_analysis.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "services/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% block main_attribs %} class="service-scheme" data-service="corpus-analysis"{% endblock main_attribs %}
diff --git a/app/templates/services/file_setup_pipeline.html.j2 b/app/templates/services/file_setup_pipeline.html.j2
index ebc4cfc4..0f046e98 100644
--- a/app/templates/services/file_setup_pipeline.html.j2
+++ b/app/templates/services/file_setup_pipeline.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "services/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% import "materialize/wtf.html.j2" as wtf %}
{% block main_attribs %} class="service-scheme" data-service="file-setup-pipeline"{% endblock main_attribs %}
diff --git a/app/templates/services/spacy_nlp_pipeline.html.j2 b/app/templates/services/spacy_nlp_pipeline.html.j2
index 8f466e3d..2ebba838 100644
--- a/app/templates/services/spacy_nlp_pipeline.html.j2
+++ b/app/templates/services/spacy_nlp_pipeline.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "services/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% import "materialize/wtf.html.j2" as wtf %}
{% block main_attribs %} class="service-scheme" data-service="spacy-nlp-pipeline"{% endblock main_attribs %}
@@ -77,7 +76,7 @@
{{ form.model.label }}
help_outline
- new_label
+ new_label
diff --git a/app/templates/services/tesseract_ocr_pipeline.html.j2 b/app/templates/services/tesseract_ocr_pipeline.html.j2
index 11d65c64..9b1d6187 100644
--- a/app/templates/services/tesseract_ocr_pipeline.html.j2
+++ b/app/templates/services/tesseract_ocr_pipeline.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "services/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% import "materialize/wtf.html.j2" as wtf %}
{% block main_attribs %} class="service-scheme" data-service="tesseract-ocr-pipeline"{% endblock main_attribs %}
@@ -59,7 +58,7 @@
{{ form.model.label }}
help_outline
- new_label
+ new_label
{% for error in form.model.errors %}
{{ error }}
diff --git a/app/templates/services/transkribus_htr_pipeline.html.j2 b/app/templates/services/transkribus_htr_pipeline.html.j2
index f5468ce9..50eb3b6e 100644
--- a/app/templates/services/transkribus_htr_pipeline.html.j2
+++ b/app/templates/services/transkribus_htr_pipeline.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "services/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% import "materialize/wtf.html.j2" as wtf %}
{% block main_attribs %} class="service-scheme" data-service="transkribus-htr-pipeline"{% endblock main_attribs %}
diff --git a/app/templates/settings/_breadcrumbs.html.j2 b/app/templates/settings/_breadcrumbs.html.j2
deleted file mode 100644
index 3b5077bf..00000000
--- a/app/templates/settings/_breadcrumbs.html.j2
+++ /dev/null
@@ -1,6 +0,0 @@
-{% set breadcrumbs %}
-
navigate_next
-{% if request.path == url_for('settings.settings') %}
-
Settings
-{% endif %}
-{% endset %}
diff --git a/app/templates/settings/settings.html.j2 b/app/templates/settings/settings.html.j2
index e9cfb97b..fd830aee 100644
--- a/app/templates/settings/settings.html.j2
+++ b/app/templates/settings/settings.html.j2
@@ -1,5 +1,4 @@
{% extends "base.html.j2" %}
-{% from "settings/_breadcrumbs.html.j2" import breadcrumbs with context %}
{% import "materialize/wtf.html.j2" as wtf %}
{% block page_content %}
diff --git a/requirements.txt b/requirements.txt
index 838cee8f..e621d2ad 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -6,6 +6,7 @@ eventlet
Flask==2.1.3
Flask-APScheduler
Flask-Assets
+Flask-Breadcrumbs
Flask-Hashids==1.0.1
Flask-HTTPAuth
Flask-Login