From 0c35617343964ad97d3ee21faf5ff5e5b1088e94 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Mon, 30 Dec 2024 20:00:14 +0100 Subject: Added cookies banner. --- app/views/layouts/_cookies.html.erb | 8 ++++++++ app/views/layouts/application.html.erb | 1 + 2 files changed, 9 insertions(+) create mode 100644 app/views/layouts/_cookies.html.erb (limited to 'app/views') diff --git a/app/views/layouts/_cookies.html.erb b/app/views/layouts/_cookies.html.erb new file mode 100644 index 0000000..0e6949a --- /dev/null +++ b/app/views/layouts/_cookies.html.erb @@ -0,0 +1,8 @@ +
+

+ Acceptez les cookies ou contribuer 2 € à la tartiflette de + Nicolas 💸 +

+ <%= button_to "Accepter les cookies", dismiss_banner_path %> + <%= button_to "Faire un don", dismiss_banner_path %> +
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 680dec1..c9ca629 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -29,5 +29,6 @@ <%= yield %> <%= render "layouts/footer" %> + <%= render "layouts/cookies" unless session[:dismissed_banner] %> -- cgit v1.2.3