From: Tom Hughes Date: Sun, 13 Aug 2023 20:57:09 +0000 (+0100) Subject: Add support for dark banner images that need a white close icon X-Git-Tag: live~1146 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/7912b7620f236f2fa8ae1ccbffd3a62f521bc99d?ds=sidebyside;hp=-c Add support for dark banner images that need a white close icon --- 7912b7620f236f2fa8ae1ccbffd3a62f521bc99d diff --git a/app/views/layouts/_banner.html.erb b/app/views/layouts/_banner.html.erb index c7cc75c49..298135f45 100644 --- a/app/views/layouts/_banner.html.erb +++ b/app/views/layouts/_banner.html.erb @@ -1,4 +1,4 @@ <% unless (banner = next_banner()).nil? %> <%= link_to (image_tag banner[:img], :srcset => banner[:srcset], :alt => banner[:alt], :title => banner[:alt]), banner[:link] %> - + <% end %> diff --git a/config/banners.yml b/config/banners.yml index 36f1c4127..c2a4df07b 100644 --- a/config/banners.yml +++ b/config/banners.yml @@ -6,4 +6,5 @@ donate_2023: srcset: - [banners/donate_2023_1.jpg, 1x] - [banners/donate_2023_1@2x.jpg, 2x] + dark: true enddate: 2023-dec-31