Files
colibre/src/pages/a-propos.py
T
Colin Maudry 9b124deeea refactor: rebrand decp.info to colibre #57
- Rename project from decp.info to colibre across all codebase
- Update domain from https://decp.info to https://colibre.fr
- Update GitHub repo references to ColinMaudry/colibre
- Rename deployment files: decpinfo-backup.* → colibre-backup.*
- Update project configuration and documentation
- Rename project assets: decp.info.png → colibre.png
- Update environment variables and constants (DOMAIN_NAME, TOKEN_PREFIX, GITHUB_REPO, etc.)
- Update URLs in all pages, tests, and configuration files
- Keep DECP acronym in text (unchanged per requirements)
- Add rebrand note to README.md

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-30 21:43:33 +02:00

41 lines
1.2 KiB
Python

from dash import Input, Output, callback, dcc, html, register_page
from src.utils.seo import META_CONTENT
register_page(
__name__,
path="/a-propos",
title="À propos | colibre",
name="À propos",
description="En savoir plus sur colibre, l'outil d'exploration des données essentielles de la commande publique.",
image_url=META_CONTENT["image_url"],
order=5,
)
_HASH_MAP = {
"#donnees-brutes": "/a-propos/donnees-brutes",
"#api-privee": "/a-propos/api-privee",
"#contact": "/a-propos/contact",
"#contribuer": "/a-propos/contribuer",
"#explorer": "/a-propos/explorer",
"#qualite-exhausitivite": "/a-propos/qualite",
"#sources": "/a-propos/sources",
"#mentions-legales": "/a-propos/mentions-legales",
"#publication": "/a-propos/mentions-legales",
"#audience": "/a-propos/mentions-legales",
"#attributions": "/a-propos/mentions-legales",
"#liste_marches": "/a-propos/mentions-legales",
}
def layout(**_):
return html.Div(dcc.Location(id="apropos-redirect-loc"))
@callback(
Output("apropos-redirect-loc", "href"),
Input("apropos-redirect-loc", "hash"),
)
def _redirect(hash_val):
return _HASH_MAP.get(hash_val or "", "/a-propos/presentation")