aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Étienne Deparis 2022-08-26 19:43:48 +0200
committerGravatar Étienne Deparis 2022-08-26 19:43:48 +0200
commit3580d08baf9a3a95d331a254b01f2cb4c2b9aee5 (patch)
tree96b25842b256762abd7b2ae693fa6c7eb455e886
parent3ec50917c5e47ed28450fa00a2ffb1ae7c5797a9 (diff)
downloadbiberons-3580d08baf9a3a95d331a254b01f2cb4c2b9aee5.tar.gz
biberons-3580d08baf9a3a95d331a254b01f2cb4c2b9aee5.tar.xz
biberons-3580d08baf9a3a95d331a254b01f2cb4c2b9aee5.zip
fix: Add a way to exit the settings page
-rw-r--r--views/layout.slim8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/layout.slim b/views/layout.slim
index cb7ff60..e0a24dc 100644
--- a/views/layout.slim
+++ b/views/layout.slim
@@ -17,7 +17,13 @@ html
- inner_span = "<span class=\"geneston\" title=\"#{R18n.t.footer.in_france}\">Geneston</span>"
p.center-text == R18n.t.footer.made_with_love(inner_span)
p.center-text
- a> href='/settings' = R18n.t.settings.settings
+ - if request.path == '/settings'
+ - if session['baby_id']
+ a> href="/#{session['baby_id']}" = R18n.t.graph.back_to_bibs
+ - else
+ a> href='/' = R18n.t.home
+ - else
+ a> href='/settings' = R18n.t.settings.settings
- if session['baby_id']
' -
a href='/session/logout' = R18n.t.session.logout