X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/22e079a3c3c98fe3cf3b727732af0b2c92ff075f..7e7ede890e8e948236d3dbc48e24aca00cd01f62:/app/views/layouts/_banner.html.erb diff --git a/app/views/layouts/_banner.html.erb b/app/views/layouts/_banner.html.erb index f6b866ff9..3d2c7f774 100644 --- a/app/views/layouts/_banner.html.erb +++ b/app/views/layouts/_banner.html.erb @@ -1,5 +1,5 @@ <% unless (banner = next_banner()).nil? %> - <%= tag.div :id => "banner", :data => { :bs_theme => token_list(:dark => banner[:dark]) } do %> + <%= tag.div :id => "banner", :class => "position-relative", :data => { :bs_theme => (banner[:dark] ? "dark" : "light") } do %> <%= link_to (image_tag banner[:img], :srcset => banner[:srcset], :alt => banner[:alt], :title => banner[:alt]), banner[:link] %>