diff --git a/controllers/main.py b/controllers/main.py
index a074be7fe2987570f472e257d438576537e871be..6e7c4d5eeae2ac43294000529949c4e4aa9d9509 100644
--- a/controllers/main.py
+++ b/controllers/main.py
@@ -45,7 +45,8 @@ class CustomerPortal(CustomerPortal):
render_values.update(
{
- "page_name": "Vue globale",
+ "page_name": "pmo-view",
+ "page_breadcrumbs": "Vue globale",
"scale": "month",
}
)
@@ -71,7 +72,8 @@ class CustomerPortal(CustomerPortal):
render_values.update(
{
"partners": partner_ids,
- "page_name": "Suivi conso",
+ "page_name": "conso",
+ "page_breadcrumbs": "Suivi consommation",
"scale": "month",
}
)
@@ -99,7 +101,8 @@ class CustomerPortal(CustomerPortal):
render_values.update(
{
"partners": partner_ids,
- "page_name": "Suivi production",
+ "page_name": "prod",
+ "page_breadcrumbs": "Suivi production",
"scale": "month",
}
)
diff --git a/templates/portal_layout.xml b/templates/portal_layout.xml
index 7fd41fdee844bbaa1e74a8ec51a291a33b548678..b6c80bbd834ce84f82bfe7627dace1115f5781f5 100644
--- a/templates/portal_layout.xml
+++ b/templates/portal_layout.xml
@@ -10,7 +10,7 @@
>
<a
t-attf-href="/operation/#{slug(operation)}/pmo"
- t-att-class="'nav-link %s' % ('active' if page_name == 'Vue globale' else '')"
+ t-att-class="'nav-link %s' % ('active' if page_name == 'pmo-view' else '')"
>
Vue Globale
</a>
@@ -21,7 +21,7 @@
>
<a
t-attf-href="/operation/#{slug(operation)}/consumer"
- t-att-class="'nav-link %s' % ('active' if page_name == 'Suivi conso' else '')"
+ t-att-class="'nav-link %s' % ('active' if page_name == 'conso' else '')"
>
Mon suivi conso
</a>
@@ -32,7 +32,7 @@
>
<a
t-attf-href="/operation/#{slug(operation)}/productor"
- t-att-class="'nav-link %s' % ('active' if page_name == 'Suivi production' else '')"
+ t-att-class="'nav-link %s' % ('active' if page_name == 'prod' else '')"
>
Mon suivi production
</a>