X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/afce238f6ce3bf2ffe018302109f32f6fa031517..e89a78fff858d5db07f6959a39dd9655dc46008e:/app/views/layouts/_banner.html.erb?ds=sidebyside diff --git a/app/views/layouts/_banner.html.erb b/app/views/layouts/_banner.html.erb index bbd9e22e2..3d2c7f774 100644 --- a/app/views/layouts/_banner.html.erb +++ b/app/views/layouts/_banner.html.erb @@ -1,8 +1,8 @@ <% 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] %> <% end %>