Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Commit

Permalink
🔧 heure manquée au singulier lorsqu'il y qu'une seule heure (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnivtwelve authored Jun 14, 2023
2 parents f619c61 + 69c6936 commit a72dc3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/schoollife/SchoollifeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
<h2 v-if="miss.data.reasons.length !== 0">{{ miss.data.reasons[0] }}</h2>
<h2 v-else>Absence non justifiée</h2>

<p v-if="miss.data.hours !== '0h00'">{{ miss.data.hours }} {{ this.loginService === 'ecoledirecte' ? '' : 'heures' }} manquées</p>
<p v-if="miss.data.hours !== '0h00'">{{ miss.data.hours }} {{ this.loginService === 'ecoledirecte' ? '' : miss.data.hours === '1h00' ? 'heure' : 'heures' }} {{ miss.data.hours === '1h00' ? 'manquée' : 'manquées' }}</p>
<h3>le {{ new Date(miss.date.from).toLocaleDateString('fr-FR', { weekday: 'long', month: 'long', day: 'numeric' }) }} à {{ new Date (miss.date.from).toLocaleDateString('fr-FR', {hour: '2-digit', minute: '2-digit'}).split(' ')[1] }}</h3>
<!-- <h3 v-else>le {{ new Date(miss.date.from).toLocaleDateString('fr-FR', { weekday: 'long', month: 'long', day: 'numeric' }) }} à {{ }}</h3> -->
</ion-label>
Expand Down

0 comments on commit a72dc3b

Please sign in to comment.