]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/application_helper.rb
Auto-uncheck the data and notes layers at low zoom
[rails.git] / app / helpers / application_helper.rb
index 4765cb35b3b6fe1fbd506bfc248d32454fc8e09a..5d61e8c6306caca559fe6c95c4eef180dbf826e3 100644 (file)
@@ -94,6 +94,14 @@ module ApplicationHelper
   end
 
   def body_class
   end
 
   def body_class
-    [params[:controller], "#{params[:controller]}-#{params[:action]}", @extra_body_class].compact.join(" ")
+    if content_for? :body_class
+      content_for :body_class
+    else
+      "#{params[:controller]} #{params[:controller]}-#{params[:action]}"
+    end
+  end
+
+  def current_page_class(path)
+    :current if current_page?(path)
   end
 end
   end
 end