Skip to content

Commit

Permalink
Définit un title accessible pour toutes les pages hors connexion
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneCharignon committed Dec 22, 2023
1 parent e42a597 commit 5e46e69
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions app/views/active_admin/devise/registrations/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<% content_for :title, t('.title') %>
<% content_for :classes_conteneur do 'conteneur-elargi' end %>

<div id="active_admin_content">
Expand Down
5 changes: 2 additions & 3 deletions app/views/active_admin/devise/sessions/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<% content_for :titre do %>
<%= md t('active_admin.devise.login.title') -%>
<% end %>
<% content_for :title, t('active_admin.devise.login.title') %>
<% content_for :titre, t('active_admin.devise.login.titre') %>

<div class="panels-login">
<div class="colonne-1">
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/active_admin_logged_out.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.1/themes/base/jquery-ui.css">

<title><%= [@page_title, ActiveAdmin.application.site_title(self)].compact.join(" | ") %></title>
<title><%= [content_for?(:title) ? yield(:title) : nil, ActiveAdmin.application.site_title(self)].compact.join(" | ") %></title>

<% ActiveAdmin.application.stylesheets.each do |style, options| %>
<% if ActiveAdmin.application.use_webpacker %>
Expand Down
1 change: 1 addition & 0 deletions app/views/nouvelles_structures/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<% content_for :title, t('.title') %>
<% content_for :titre do %>
<%= t('.titre') -%>
<% end %>
Expand Down
1 change: 1 addition & 0 deletions app/views/structures/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<div id="active_admin_content">
<% content_for :title, t('.title') %>
<% content_for :titre do %>
<%= t('.titre') -%>
<% end %>
Expand Down
6 changes: 3 additions & 3 deletions config/locales/activeadmin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ fr:
Si vous avez déjà un compte eva, vous pouvez vous connecter directement avec ce compte.
retour: Annuler
login:
title: |
Espace Pro
title: Authentification
titre: Espace Pro
header_title: Je suis conseiller
inscription:
content: Je n'ai pas encore de compte
Expand Down Expand Up @@ -63,7 +63,7 @@ fr:
limite_atteinte: "L'export est limité à %{limite} lignes, les lignes supplémentaires n'ont pas été exportées. Vous pouvez utiliser les filtres pour réduire le nombre de lignes que vous voulez exporter"
footer: |
Ce site est créé avec ❤️ par <a href='https://beta.gouv.fr/startups/eva.html' target='_blank'>l'équipe</a> eva -
Le <a href='https://github.com/betagouv/eva-serveur' target='_blank'>code source</a> est libre -
Le <a href='https://github.com/betagouv/eva-serveur' target='_blank'>code source</a> est libre -
<a href="#tarteaucitron">Cookies</a> - <a href='/cgu/' target='_blank'>CGU</a>
menu_connexion:
compte: Voir mon compte
Expand Down
2 changes: 2 additions & 0 deletions config/locales/views/structures.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
fr:
structures:
index:
title: Rechercher ma structure
titre: Bienvenue !
description: |
**Vous souhaitez créer un compte conseiller eva.**
Expand Down Expand Up @@ -34,6 +35,7 @@ fr:
Si vous avez des difficultés, vous pouvez nous contacter à : [[email protected]](mailto:[email protected])
nouvelles_structures:
show:
title: Créer une nouvelle structure
titre: Rejoindre eva
structure:
titre: Votre structure
Expand Down

0 comments on commit 5e46e69

Please sign in to comment.