Lien a propos direct, ordre section, mini erreur dans marche.py
This commit is contained in:
+3
-1
@@ -177,7 +177,9 @@ navbar = dbc.Navbar(
|
|||||||
dbc.NavItem(
|
dbc.NavItem(
|
||||||
dbc.NavLink(
|
dbc.NavLink(
|
||||||
page["name"].replace(" ", " "),
|
page["name"].replace(" ", " "),
|
||||||
href=page["relative_path"],
|
href=page["relative_path"] + "/presentation"
|
||||||
|
if page["name"] == "À propos"
|
||||||
|
else page["relative_path"],
|
||||||
active="exact",
|
active="exact",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,16 +3,16 @@ from dash import Input, Output, State, callback, html
|
|||||||
|
|
||||||
SECTIONS = [
|
SECTIONS = [
|
||||||
{"key": "presentation", "label": "Présentation", "href": "/a-propos/presentation"},
|
{"key": "presentation", "label": "Présentation", "href": "/a-propos/presentation"},
|
||||||
|
{"key": "explorer", "label": "Explorer le projet", "href": "/a-propos/explorer"},
|
||||||
|
{"key": "sources", "label": "Sources de données", "href": "/a-propos/sources"},
|
||||||
|
{"key": "qualite", "label": "Qualité des données", "href": "/a-propos/qualite"},
|
||||||
{
|
{
|
||||||
"key": "donnees-brutes",
|
"key": "donnees-brutes",
|
||||||
"label": "Données brutes",
|
"label": "Données brutes",
|
||||||
"href": "/a-propos/donnees-brutes",
|
"href": "/a-propos/donnees-brutes",
|
||||||
},
|
},
|
||||||
{"key": "contact", "label": "Contact", "href": "/a-propos/contact"},
|
|
||||||
{"key": "contribuer", "label": "Contribuer", "href": "/a-propos/contribuer"},
|
{"key": "contribuer", "label": "Contribuer", "href": "/a-propos/contribuer"},
|
||||||
{"key": "explorer", "label": "Explorer le projet", "href": "/a-propos/explorer"},
|
{"key": "contact", "label": "Contact", "href": "/a-propos/contact"},
|
||||||
{"key": "qualite", "label": "Qualité des données", "href": "/a-propos/qualite"},
|
|
||||||
{"key": "sources", "label": "Sources de données", "href": "/a-propos/sources"},
|
|
||||||
{
|
{
|
||||||
"key": "mentions-legales",
|
"key": "mentions-legales",
|
||||||
"label": "Mentions légales",
|
"label": "Mentions légales",
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ def update_marche_info(marche, titulaires):
|
|||||||
"considerationsEnvironnementales",
|
"considerationsEnvironnementales",
|
||||||
]
|
]
|
||||||
and col in marche
|
and col in marche
|
||||||
|
and marche[col]
|
||||||
and "," in marche[col]
|
and "," in marche[col]
|
||||||
):
|
):
|
||||||
col_values = marche[col].split(", ")
|
col_values = marche[col].split(", ")
|
||||||
|
|||||||
Reference in New Issue
Block a user