From 3e9d749574ee43593873740a810f58b8da83c101 Mon Sep 17 00:00:00 2001 From: Inga Kirschnick Date: Fri, 18 Nov 2022 13:46:52 +0100 Subject: [PATCH] Small fix titles --- app/contributions/routes.py | 4 ++-- app/templates/contributions/_breadcrumbs.html.j2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/contributions/routes.py b/app/contributions/routes.py index 0c4b230b..6852979f 100644 --- a/app/contributions/routes.py +++ b/app/contributions/routes.py @@ -65,7 +65,7 @@ def tesseract_ocr_pipeline_model(tesseract_ocr_pipeline_model_id): 'contributions/tesseract_ocr_pipeline_model.html.j2', form=form, tesseract_ocr_pipeline_model=tesseract_ocr_pipeline_model, - title='Edit Tesseract OCR Pipeline Model' + title=f'{tesseract_ocr_pipeline_model.title} {tesseract_ocr_pipeline_model.version}' ) @@ -162,7 +162,7 @@ def spacy_nlp_pipeline_model(spacy_nlp_pipeline_model_id): 'contributions/spacy_nlp_pipeline_model.html.j2', form=form, spacy_nlp_pipeline_model=spacy_nlp_pipeline_model, - title=f'{spacy_nlp_pipeline_model.title} [{spacy_nlp_pipeline_model.version}]' + title=f'{spacy_nlp_pipeline_model.title} {spacy_nlp_pipeline_model.version}' ) @bp.route('/spacy-nlp-pipeline-models/', methods=['DELETE']) diff --git a/app/templates/contributions/_breadcrumbs.html.j2 b/app/templates/contributions/_breadcrumbs.html.j2 index b19de6aa..ab64dec4 100644 --- a/app/templates/contributions/_breadcrumbs.html.j2 +++ b/app/templates/contributions/_breadcrumbs.html.j2 @@ -29,7 +29,7 @@
  • navigate_next
  • - Edit {{ tesseract_ocr_pipeline_model.title }} + {{ tesseract_ocr_pipeline_model.title }} {{ tesseract_ocr_pipeline_model.version }}
  • {% elif spacy_nlp_pipeline_model and request.path == url_for('.spacy_nlp_pipeline_model', spacy_nlp_pipeline_model_id=spacy_nlp_pipeline_model.id) %} @@ -39,7 +39,7 @@
  • navigate_next
  • - Edit {{ spacy_nlp_pipeline_model.title }} + {{ spacy_nlp_pipeline_model.title }} {{ spacy_nlp_pipeline_model.version }}
  • {% endif %}