From ee29e1cc67d07c7a7e8ee204dcc56e5a8a22dca2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Minh=20Nguy=E1=BB=85n?= Date: Sat, 7 Feb 2026 15:07:27 -0800 Subject: [PATCH] Made donation form URL configurable --- app/views/site/copyright.html.erb | 5 +++-- config/locales/en.yml | 1 - config/settings.yml | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/site/copyright.html.erb b/app/views/site/copyright.html.erb index a70fe432f..b0450dd61 100644 --- a/app/views/site/copyright.html.erb +++ b/app/views/site/copyright.html.erb @@ -43,9 +43,10 @@ <%= legal_babble_paragraph "lead_1" %>

- <%= legal_babble_paragraph "lead_2", :links => %w[learn_more_about_osm osm_blog weeklyosm osm_foundation making_donation], + <%= legal_babble_paragraph "lead_2", :links => %w[learn_more_about_osm osm_blog weeklyosm osm_foundation], :local_links => { :get_started_mapping => new_user_path, - :osm_community => communities_path } %> + :osm_community => communities_path, + :making_donation => Settings.donation_url } %>

<%= t ".legal_babble.licensing_title" %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index 6e132deb7..4bacd40be 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2398,7 +2398,6 @@ en: lead_2_osm_foundation: OSM Foundation lead_2_osm_foundation_url: https://osmfoundation.org/ lead_2_making_donation: making a donation - lead_2_making_donation_url: https://supporting.openstreetmap.org/ licensing_title: OpenStreetMap licensing licensing_1_html: | OpenStreetMap is %{open} data, licensed under the diff --git a/config/settings.yml b/config/settings.yml index 21e9693ac..e5789e62a 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -139,6 +139,8 @@ fossgis_valhalla_url: "https://valhalla1.openstreetmap.de/route" # Endpoints for Wikimedia integration wikidata_api_url: "https://www.wikidata.org/w/api.php" wikimedia_commons_url: "https://commons.wikimedia.org/wiki/" +# URL to donation form +donation_url: "https://supporting.openstreetmap.org/donate/" # Linkification rules linkify: detection_rules: -- 2.39.5