Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve(Statistiques territoire): Mettre un message pour l'année en cours (2024) et cacher certains chiffres #4968

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions frontend/src/views/PublicCanteenStatisticsPage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@
Aucune cantine n'a renseigné des données relatives à la loi EGalim pour l'année {{ year }}.
</p>
</div>
<div v-else-if="year === 2024">
<DsfrCallout class="my-6">
<p>
raphodn marked this conversation as resolved.
Show resolved Hide resolved
Les données 2024 récoltées durant la campagne 2025 seront disponibles d'ici la fin d'année (dès lors que le
rapport statistique sera validé par le parlement).
</p>
</DsfrCallout>
</div>
<div v-else>
<p class="mt-4">Parmi les {{ statistics.diagnosticsCount }} cantines qui ont télédéclaré&nbsp;:</p>
<v-row class="px-2">
Expand Down Expand Up @@ -290,6 +298,7 @@ import BreadcrumbsNav from "@/components/BreadcrumbsNav"
import DsfrAutocomplete from "@/components/DsfrAutocomplete"
import DsfrSelect from "@/components/DsfrSelect"
import GraphComponent from "@/components/GraphComponent"
import DsfrCallout from "@/components/DsfrCallout"

export default {
name: "PublicCanteenStatisticsPage",
Expand All @@ -300,6 +309,7 @@ export default {
DsfrAutocomplete,
DsfrSelect,
GraphComponent,
DsfrCallout,
},
data() {
const yearGenerator = function*() {
Expand Down
Loading