From a56a2854a44fb3b51fe1e0982b86f1f50dbea15f Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Sat, 4 Feb 2023 14:38:27 +0100 Subject: [PATCH] feat: added navbar links Signed-off-by: Louis Vallat --- app/views/layouts/application.html.erb | 22 +++++++++++++++++----- config/locales/en/fields.en.yml | 4 +++- config/locales/fr/fields.fr.yml | 2 ++ 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 26b6daa..fc485d4 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -16,11 +16,16 @@
-
+
-

<%= notice %>

-

<%= alert %>

-<%= yield %> +
+ <% if notice %> +

<%= notice %>

+ <% end %> + + <% if alert %> +

<%= alert %>

+ <% end %> + <%= yield %> +
diff --git a/config/locales/en/fields.en.yml b/config/locales/en/fields.en.yml index e278243..a010b66 100644 --- a/config/locales/en/fields.en.yml +++ b/config/locales/en/fields.en.yml @@ -2,4 +2,6 @@ en: fields: home: "Home" login: "Login" - logout: "Logout" \ No newline at end of file + logout: "Logout" + count: "Count" + profile: "Profile" \ No newline at end of file diff --git a/config/locales/fr/fields.fr.yml b/config/locales/fr/fields.fr.yml index 0fd0842..5df770f 100644 --- a/config/locales/fr/fields.fr.yml +++ b/config/locales/fr/fields.fr.yml @@ -3,3 +3,5 @@ fr: home: "Accueil" login: "Se connecter" logout: "Se déconnecter" + count: "Compte" + profile: "Profil"