From 42279be7f56d1972931857c0aecb4ba568606823 Mon Sep 17 00:00:00 2001 From: jgenero Date: Sun, 23 Oct 2022 17:28:18 +0200 Subject: [PATCH] add breadcrumb on template corpus, prince_corpus, acte --- app/routes.py | 6 ++++-- app/templates/acte.html | 8 ++++++++ app/templates/corpus.html | 6 ++++++ app/templates/prince_corpus.html | 7 +++++++ 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/app/routes.py b/app/routes.py index 33f0882..412933a 100644 --- a/app/routes.py +++ b/app/routes.py @@ -94,7 +94,9 @@ def acte(house=None, prince=None, acte_id=None): Document.id_document == acte_doc)] inst = [t.full_label for t in Institution.select().where( Institution.id_institution == doc[0][1])] - + prince_name = [t.name_indiv for t in Individual.select().where( + Individual.id_indiv == prince)] + print(prince_name) # if the acte if in another house's folder, # change according to the begining of filename @@ -119,7 +121,7 @@ def acte(house=None, prince=None, acte_id=None): return render_template("acte.html", house=house, prince=prince, infos=q_acte, place=place[0], doc=doc[0][0], arch=inst[0], diplo=diplo_t[0].replace("_", " "), state=state[0], - output_doc=output_doc) + output_doc=output_doc, name_prince=prince_name[0]) @main.route("/contact") def contact() -> t.Text: diff --git a/app/templates/acte.html b/app/templates/acte.html index 68dd5d5..c7e7a78 100644 --- a/app/templates/acte.html +++ b/app/templates/acte.html @@ -1,6 +1,14 @@ {% extends "container.html" %} {% block corps %}
+