diff --git a/app/assets/images/crowdfunding-2026.jpg b/app/assets/images/crowdfunding-2026.jpg new file mode 100644 index 000000000..98bfbe8b8 Binary files /dev/null and b/app/assets/images/crowdfunding-2026.jpg differ diff --git a/app/helpers/crowdfunding_helper.rb b/app/helpers/crowdfunding_helper.rb new file mode 100644 index 000000000..4d111d1ea --- /dev/null +++ b/app/helpers/crowdfunding_helper.rb @@ -0,0 +1,12 @@ +module CrowdfundingHelper + MIGRANODEARENA_PATHS = { + "es" => "", + "ca" => "/ca", + "en" => "/en" + }.freeze + + def migranodearena_widget_url + prefix = MIGRANODEARENA_PATHS.fetch(I18n.locale.to_s, "/en") + "https://www.migranodearena.org#{prefix}/widget/timeoverflow-needs-your-support" + end +end diff --git a/app/views/application/_navbar.html.erb b/app/views/application/_navbar.html.erb index 36389783f..9be22ca70 100644 --- a/app/views/application/_navbar.html.erb +++ b/app/views/application/_navbar.html.erb @@ -83,4 +83,13 @@ +
+ <%= link_to "https://www.migranodearena.org/reto/timeoverflow-necesita-tu-apoyo", + target: "_blank", rel: "noopener" do %> + <%= image_tag "images/crowdfunding-2026.jpg", + alt: "TimeOverflow necesita tu apoyo", + class: "img-fluid", + style: "max-width: 500px;" %> + <% end %> +
<% end %> diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index f737c6b90..31a7d4100 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -1,7 +1,19 @@
-
-

<%= t("application.landing.slogan") %>

-

<%= t("application.landing.sub_slogan") %>

- <%= t("application.landing.button") %> +
+
+
+

<%= t("application.landing.slogan") %>

+

<%= t("application.landing.sub_slogan") %>

+ <%= t("application.landing.button") %> +
+
+ <%= tag.iframe src: migranodearena_widget_url, + allowtransparency: "true", + frameborder: "0", + width: "350", + height: "500", + scrolling: "no" %> +
+
diff --git a/app/views/organization_notifier/recent_posts.html.erb b/app/views/organization_notifier/recent_posts.html.erb index 3e9a1c437..6678884e6 100644 --- a/app/views/organization_notifier/recent_posts.html.erb +++ b/app/views/organization_notifier/recent_posts.html.erb @@ -42,7 +42,7 @@ TimeOverflow
- <%= t("mailers_globals.footer.text_donation", href: link_to(t("mailers_globals.footer.text_donation_link"), "https://www.teaming.net/poreldesarrollodelosbancosdetiempo")).html_safe %> + <%= t("mailers_globals.footer.text_donation", href: link_to(t("mailers_globals.footer.text_donation_link"), "https://www.migranodearena.org/reto/timeoverflow-necessita-el-teu-suport")).html_safe %>

diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb index b3076b38f..6f81ed609 100644 --- a/config/initializers/content_security_policy.rb +++ b/config/initializers/content_security_policy.rb @@ -23,3 +23,7 @@ # # Report violations without enforcing the policy. # # config.content_security_policy_report_only = true # end + +Rails.application.config.content_security_policy do |policy| + policy.frame_src :self, "https://www.migranodearena.org" +end diff --git a/config/locales/ca.yml b/config/locales/ca.yml index c4491f080..761f79b83 100644 --- a/config/locales/ca.yml +++ b/config/locales/ca.yml @@ -364,9 +364,8 @@ ca: mailers_globals: footer: text: "%{organization_name} en" - text_donation: L'associació ADBdT ofereix TimeOverflow de forma gratuïta als - Bancs de Temps. Si vols contribuir a mantenir i millorar la plataforma, %{href}. - text_donation_link: visita aquesta web + text_donation: TimeOverflow necessita el teu suport! %{href}. + text_donation_link: Participa al CROWDFUNDING multi_transfers: multi_transfers: 'Transferències múltiples ' step: diff --git a/config/locales/en.yml b/config/locales/en.yml index 8888ecdb2..2a9c43591 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -363,9 +363,8 @@ en: mailers_globals: footer: text: "%{organization_name} from" - text_donation: The ADBdT association offers TimeOverflow for free to Time Banks. - If you want to help maintain and improve the platform %{href}. - text_donation_link: visit this website + text_donation: TimeOverflow needs your support! %{href}. + text_donation_link: Join the CROWDFUNDING campaign. multi_transfers: multi_transfers: Multi transfers step: diff --git a/config/locales/es.yml b/config/locales/es.yml index c855508ad..7f4e65fbd 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -366,10 +366,8 @@ es: mailers_globals: footer: text: "%{organization_name} en" - text_donation: La asociación ADBdT ofrece TimeOverflow de forma gratuita a los - Bancos de Tiempo. Si quieres contribuir a mantener y mejorar la plataforma, - %{href}. - text_donation_link: visita esta web + text_donation: ¡TimeOverflow necesita tu apoyo! %{href}. + text_donation_link: Participa en el CROWDFUNDING multi_transfers: multi_transfers: Transferencias múltiples step: