From 09bb7dde9a32237085a9a504d4ce298903ec9c53 Mon Sep 17 00:00:00 2001 From: jgenero Date: Sat, 15 Oct 2022 19:35:46 +0200 Subject: [PATCH] path to the prince corpus page + resolve pb in js and csv import --- app/routes.py | 14 +++++++++----- app/templates/corpora_all.html | 3 ++- app/templates/corpus.html | 7 ++++++- app/templates/home.html | 2 +- app/templates/partials/app_css_links.html | 6 +++--- 5 files changed, 21 insertions(+), 11 deletions(-) diff --git a/app/routes.py b/app/routes.py index ca50734..bba3532 100644 --- a/app/routes.py +++ b/app/routes.py @@ -19,20 +19,24 @@ def home(): """home route""" return render_template("home.html") -@app.route("/about") +@app.route("/about/") def about(): """home route""" return render_template("about.html") -@app.route("/actes") +@app.route("/actes/") def corpora_all(): """copora all route""" return render_template("corpora_all.html") @app.route("/actes/") # dont put a slash at the end def actes(house): - """copora all route""" - house = "bourbon" - return render_template("corpus.html") + """actes route""" + return render_template("corpus.html", house=house) + +@app.route("/actes//") # dont put a slash at the end +def prince_corpus(house=None, prince=None): + """copora prince route""" + return render_template("prince_corpus.html", house=house, prince=prince) diff --git a/app/templates/corpora_all.html b/app/templates/corpora_all.html index 1ff7afb..bb3b30a 100644 --- a/app/templates/corpora_all.html +++ b/app/templates/corpora_all.html @@ -4,7 +4,8 @@

Corpus

Corpus disponibles :

{% endblock %} \ No newline at end of file diff --git a/app/templates/corpus.html b/app/templates/corpus.html index f245f01..d19454c 100644 --- a/app/templates/corpus.html +++ b/app/templates/corpus.html @@ -1,6 +1,11 @@ {% extends "container.html" %} {% block corps %}
- CORPUS BB +

Corpus des actes des ducs et duchesses de {{house}}

+

Les corpus disponibles

+
{% endblock %} \ No newline at end of file diff --git a/app/templates/home.html b/app/templates/home.html index 286cf41..1480da9 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -61,7 +61,7 @@

Corpus des actes de la maison de Bourbon.

Louis II et Anne Dauphine

Charles Ier et Agnès de Bourgogne

-

Accéder aux actes »

+

Accéder aux actes »

diff --git a/app/templates/partials/app_css_links.html b/app/templates/partials/app_css_links.html index 1b86577..def0a87 100644 --- a/app/templates/partials/app_css_links.html +++ b/app/templates/partials/app_css_links.html @@ -1,10 +1,10 @@ - + - + - + \ No newline at end of file