Skip to content

Commit

Permalink
feat(junior): Add some title to junior's pages
Browse files Browse the repository at this point in the history
  • Loading branch information
rouxxi authored May 21, 2024
1 parent e9ecbaf commit 7f26918
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions junior/app/pods/assessment/results/template.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{page-title (t "pages.missions.end-page.title")}}
<div class="mission-page">
<RobotDialog @class="happy">
<Bubble @message={{t "pages.missions.end-page.congratulations"}} @color="success" />
Expand Down
2 changes: 1 addition & 1 deletion junior/app/pods/components/challenge/template.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{page-title "Challenge"}}
{{page-title (t "pages.challenge.title")}}
<div class="container">
<RobotDialog @class={{this.robotMood}}>
<Bubble @message={{@challenge.instruction}} />
Expand Down
6 changes: 3 additions & 3 deletions junior/app/pods/identified/missions/list/template.hbs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{page-title "Home"}}
{{page-title (t "pages.missions.list.title")}}
<div>
<RobotDialog>
<Bubble @message={{t "pages.missions.start-page.instruction" prenom=this.model.organizationLearner.firstName}} />
<Bubble @message={{t "pages.missions.list.instruction" prenom=this.model.organizationLearner.firstName}} />
<Bubble
@message={{t
"pages.missions.start-page.back-to-students"
"pages.missions.list.back-to-students"
prenom=this.model.organizationLearner.firstName
backUrl=this.schoolUrl
}}
Expand Down
1 change: 1 addition & 0 deletions junior/app/pods/identified/missions/mission/template.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{page-title (t "pages.missions.start-page.title")}}
<div class="mission-page">
<RobotDialog>
<Bubble @message={{t "pages.missions.start-page.welcome"}} />
Expand Down
12 changes: 9 additions & 3 deletions junior/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"pages": {
"pix-junior": "Pix Junior",
"challenge": {
"title": "Mission",
"actions": {
"skip": "Je passe",
"check": "Je vérifie",
Expand Down Expand Up @@ -30,18 +31,23 @@
"backHome": "Retour à l'accueil"
},
"missions": {
"list": {
"title": "Mes Missions",
"instruction": "Bonjour <strong>{prenom}</strong>, choisis ta mission parmi celles qui te sont proposées ci-dessous !",
"back-to-students": "Si tu n'es pas <strong>{prenom}</strong>, <a href=\"{backUrl}\" class=\"internal-link\">clique ici pour retourner à la liste des élèves </a>"
},
"start-page": {
"title": "Début de mission",
"back-to-missions": "Voir toutes les missions",
"cards": {
"finished": "Terminé"
},
"instruction": "Bonjour <strong>{prenom}</strong>, choisis ta mission parmi celles qui te sont proposées ci-dessous !",
"back-to-students": "Si tu n'es pas <strong>{prenom}</strong>, <a href=\"{backUrl}\" class=\"internal-link\">clique ici pour retourner à la liste des élèves </a>",
"purpose-title": "Objectif de la mission :",
"start-mission": "C'est partix !",
"welcome": "Prépare-toi à résoudre des épreuves et relever des défis."
},
"end-page": {
"title": "Fin de mission",
"congratulations": "Bravo ! <br> Tu as terminé ta mission !",
"back-to-missions": "Voir d'autres missions",
"details-list": "Tu as pu travailler :"
Expand All @@ -57,7 +63,7 @@
"page-title": "Liste des classes",
"welcome": "Bienvenue sur la page de l'école : <strong>{schoolName}</strong><br>Maintenant, choisis ta classe."
},
"student-list":{
"student-list": {
"back-to-divisions": "Si ce n'est pas ta classe, <a href=\"{backUrl}\" class=\"internal-link\">clique ici pour retourner à la liste des classes</a>",
"find-name": "Voici les élèves de la classe : <strong>{division}</strong><br>Clique sur ton prénom dans la liste.",
"page-title": "Liste des élèves"
Expand Down

0 comments on commit 7f26918

Please sign in to comment.