]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/site.html.erb
Merge remote-tracking branch 'upstream/pull/5410'
[rails.git] / app / views / layouts / site.html.erb
index 6898b6f0bbff447522f1b7394cc55cfd38d99b5d..f02f024a57a69e84905c76122f1b16ff053e8f20 100644 (file)
@@ -3,11 +3,12 @@
              :dir => dir,
              :data => { :bs_theme => (preferred_color_scheme(:site) if preferred_color_scheme(:site) != "auto") } do %>
   <%= render :partial => "layouts/head" %>
-  <body class="<%= body_class %>">
+  <%= tag.body :class => body_class,
+               :data => { :map_theme => (preferred_color_scheme(:map) if preferred_color_scheme(:map) != "auto") } do %>
     <%= render :partial => "layouts/header" %>
     <%= render :partial => "layouts/content" %>
     <% if defined?(Settings.matomo) -%>
     <noscript><p><img src="<%= request.protocol %><%= Settings.matomo["location"] %>/matomo.php?idsite=<%= Settings.matomo["site"] %>" class="matomo" alt="" /></p></noscript>
     <% end -%>
-  </body>
+  <% end %>
 <% end %>