- Correction des 907 erreurs ruff (pathlib, imports, nommage, simplifications, docstrings) - Fix déduplication labels dans multiselect nœuds d'arrivée (analyse) - Expansion 1→N label→IDs pour le Sankey (Pays d'opération) - Ajout CLAUDE.md et document de design de l'audit - Mise à jour .gitignore (artefacts tests exploratoires) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
696 B
Python
27 lines
696 B
Python
import streamlit as st
|
|
|
|
from config import ENV
|
|
from utils.persistance import get_session_id
|
|
from utils.translations import _
|
|
|
|
|
|
def afficher_entete():
|
|
"""Affiche l'en-tête de l'application avec le titre et le sous-titre."""
|
|
header = f"""
|
|
<header role="banner" aria-labelledby="entete-header">
|
|
<div class='wide-header'>
|
|
<p id='entete-header' class='titre-header'>{_("header.title")}</p>
|
|
"""
|
|
|
|
if ENV == "dev":
|
|
header += f"<p>🔧 {_("app.dev_mode")} Session : {get_session_id()}</p>"
|
|
else:
|
|
header += f"<p>{_("header.subtitle")}</p>"
|
|
|
|
header += """
|
|
</div>
|
|
</header>
|
|
"""
|
|
|
|
st.markdown(header, unsafe_allow_html=True)
|