Skip to content

Commit

Permalink
[FEATURE] Ajout d'une description à Pix Certif et autorisation du pas…
Browse files Browse the repository at this point in the history
…sage des google Bots (PIX-15321).

 #10662
  • Loading branch information
pix-service-auto-merge authored Nov 27, 2024
2 parents c2bb877 + 4570e71 commit 91feda4
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
2 changes: 0 additions & 2 deletions certif/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Pix Certif</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-pix_certif.png">
Expand Down
7 changes: 7 additions & 0 deletions certif/app/routes/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,11 @@ export default class ApplicationRoute extends Route {
const userLocale = this.currentUser.certificationPointOfContact?.lang;
await this.session.handleLocale({ isFranceDomain, localeFromQueryParam, userLocale });
}

model() {
return {
title: this.currentDomain.isFranceDomain ? 'Pix Certif (France)' : 'Pix Certif (hors France)',
headElement: document.querySelector('head'),
};
}
}
7 changes: 6 additions & 1 deletion certif/app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{{page-title "Pix Certif"}}
{{page-title this.model.title}}
{{#in-element this.model.headElement insertBefore=null}}
{{! template-lint-disable no-forbidden-elements }}
<meta name="description" content={{t "application.description"}} />
{{/in-element}}

<CommunicationBanner />
{{outlet}}
<PixToastContainer @closeButtonAriaLabel={{t "common.notifications.close-button.extra-information"}} />
3 changes: 1 addition & 2 deletions certif/public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# http://www.robotstxt.org
User-agent: *
Disallow: /
Noindex: /
Allow: /
3 changes: 3 additions & 0 deletions certif/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"application": {
"description": "The platform dedicated to the organisation of Pix Certification sessions. Pix Certif allows you to create and manage certification sessions."
},
"banners": {
"language-availability": {
"message": "Your language is not yet available on Pix Certif. For your convenience, the application will be presented in English. The entire Pix team is working to add your language."
Expand Down
3 changes: 3 additions & 0 deletions certif/translations/fr.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"application": {
"description": "La plateforme dédiée à l'organisation de sessions de Certification Pix. Votre espace Pix Certif vous permet de créer et administrer des sessions de certification."
},
"banners": {
"language-availability": {
"message": "Votre langue n'est pas encore disponible sur Pix Certif. Pour votre confort, l'application sera présentée en anglais. Toute l'équipe de Pix travaille à l'ajout de votre langue."
Expand Down

0 comments on commit 91feda4

Please sign in to comment.