From f2e8ca790c289084c3fafc61f9079bea277b5135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Fri, 30 May 2025 13:18:38 +0400 Subject: [PATCH] Add Privacy and ToS pages, footer menu --- app/components/main_compact_component.html.erb | 2 +- app/components/main_simple_component.html.erb | 2 +- .../main_with_sidenav_component.html.erb | 2 +- .../main_with_tabnav_component.html.erb | 2 +- app/controllers/pages_controller.rb | 9 +++++++++ app/views/layouts/application.html.erb | 15 +++++++++++++-- app/views/pages/privacy.html.erb | 17 +++++++++++++++++ app/views/pages/tos.html.erb | 17 +++++++++++++++++ app/views/settings/_profile.html.erb | 2 +- config/routes.rb | 2 ++ 10 files changed, 63 insertions(+), 7 deletions(-) create mode 100644 app/controllers/pages_controller.rb create mode 100644 app/views/pages/privacy.html.erb create mode 100644 app/views/pages/tos.html.erb diff --git a/app/components/main_compact_component.html.erb b/app/components/main_compact_component.html.erb index 80161b6..67c9770 100644 --- a/app/components/main_compact_component.html.erb +++ b/app/components/main_compact_component.html.erb @@ -1,4 +1,4 @@ -
+
<%= content %>
diff --git a/app/components/main_simple_component.html.erb b/app/components/main_simple_component.html.erb index beacf7b..3a5651a 100644 --- a/app/components/main_simple_component.html.erb +++ b/app/components/main_simple_component.html.erb @@ -1,4 +1,4 @@ -
+
<%= content %>
diff --git a/app/components/main_with_sidenav_component.html.erb b/app/components/main_with_sidenav_component.html.erb index 86225ff..9e5baf2 100644 --- a/app/components/main_with_sidenav_component.html.erb +++ b/app/components/main_with_sidenav_component.html.erb @@ -1,4 +1,4 @@ -
+