Skip to content

Commit

Permalink
improve(Statistiques territoire): modification du titre de la page et…
Browse files Browse the repository at this point in the history
… du breadcrumb (#4954)
  • Loading branch information
raphodn authored Jan 27, 2025
1 parent 4506e6e commit d56c319
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 2024-frontend/src/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const navItems = [
to: { name: "CanteenSearchLanding" },
},
{
text: "Dans ma collectivité",
text: "Sur mon territoire",
to: { name: "PublicCanteenStatisticsPage" },
},
{
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/AppHeader/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export default {
to: { name: "CanteenSearchLanding" },
},
{
text: "Dans ma collectivité",
text: "Sur mon territoire",
to: { name: "PublicCanteenStatisticsPage" },
},
{
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ const routes = [
name: "PublicCanteenStatisticsPage",
component: PublicCanteenStatisticsPage,
meta: {
title: "Les cantines dans ma collectivité",
title: "Sur mon territoire",
},
sitemapGroup: Constants.SitemapGroups.LAW,
},
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/views/PublicCanteenStatisticsPage/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="text-left grey--text text--darken-4">
<BreadcrumbsNav />
<h1 class="text-h4 font-weight-black black--text mb-6">Découvrir les démarches chez vous</h1>
<h1 class="text-h4 font-weight-black black--text mb-6">Application de la loi EGalim sur mon territoire</h1>

<v-card outlined>
<v-card-text>
Expand Down Expand Up @@ -90,6 +90,7 @@
</v-form>
</v-card-text>
</v-card>

<div v-if="locationText" class="pt-8">
<h2 class="text-h5 font-weight-bold">Les chiffres pour {{ locationText }}</h2>
<p v-if="sectorsText" class="text-body-2 mt-4 grey--text text--darken-2">
Expand Down Expand Up @@ -584,7 +585,7 @@ export default {
this.chosenSectors = this.$route.query.sectors?.split(",").map((s) => parseInt(s, 10)) || []
},
updateDocumentTitle() {
let title = `Les cantines dans ma collectivité - ${this.$store.state.pageTitleSuffix}`
let title = `Sur mon territoire - ${this.$store.state.pageTitleSuffix}`
if (this.chosenRegions.length || this.chosenDepartments.length || this.chosenEpcis.length) {
let locationText = this.createLocationText()
if (locationText.startsWith("les")) {
Expand Down

0 comments on commit d56c319

Please sign in to comment.