Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added app/assets/images/crowdfunding-2026.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions app/helpers/crowdfunding_helper.rb
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions app/views/application/_navbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,13 @@
</div>
</div>
</nav>
<div class="text-center my-4">
<%= 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 %>
</div>
<% end %>
20 changes: 16 additions & 4 deletions app/views/home/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
<div class="content">
<div class="home-wrapper">
<h2><%= t("application.landing.slogan") %></h2>
<h3><%= t("application.landing.sub_slogan") %></h3>
<a href="/login" class="btn btn-info" role="button"><%= t("application.landing.button") %></a>
<div class="container">
<div class="row home-wrapper align-items-center">
<div class="col-12 col-md-6 mb-4 mb-md-0">
<h2><%= t("application.landing.slogan") %></h2>
<h3><%= t("application.landing.sub_slogan") %></h3>
<a href="/login" class="btn btn-info" role="button"><%= t("application.landing.button") %></a>
</div>
<div class="col-12 col-md-6">
<%= tag.iframe src: migranodearena_widget_url,
allowtransparency: "true",
frameborder: "0",
width: "350",
height: "500",
scrolling: "no" %>
</div>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion app/views/organization_notifier/recent_posts.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
TimeOverflow
<a>
<br />
<em><%= t("mailers_globals.footer.text_donation", href: link_to(t("mailers_globals.footer.text_donation_link"), "https://www.teaming.net/poreldesarrollodelosbancosdetiempo")).html_safe %></em>
<em><%= 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 %></em>
</p>
</body>
</html>
4 changes: 4 additions & 0 deletions config/initializers/content_security_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 2 additions & 3 deletions config/locales/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 2 additions & 3 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 2 additions & 4 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading