[openstreetmap/openstreetmap-website] Allow localized & country-specific banners (PR #6851)

Daniele Santini notifications at github.com
Sun Mar 15 17:02:50 UTC 2026


@Danysan1 commented on this pull request.



> +  def make_banner(id, locales: nil, countries: nil)
+    {
+      :id => id,
+      :alt => "Test Banner",
+      :link => "https://example.com",
+      :img => "banners/test.png",
+      :enddate => "2099-jan-01",
+      :locales => locales,
+      :countries => countries
+    }.compact
+  end

Done in b0cb7111ab98873fc2a363d5ba54bb4fb100fbaa

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6851#discussion_r2937017076
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6851/review/3950395520 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260315/c06804ec/attachment.htm>


More information about the rails-dev mailing list