]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/browse_controller.rb
Use browser detection to decide how many features to show
[rails.git] / app / controllers / browse_controller.rb
index 2a7e2c5f70ed74c09ee1c0abef9c127461bffd65..f423c6388753ddd80bc65e802d7e4a288640bac6 100644 (file)
@@ -7,6 +7,11 @@ class BrowseController < ApplicationController
   around_filter :web_timeout, :except => [:start]
 
   def start 
+    @max_features = case
+                    when browser.ie? && browser.version.to_i < 8 then 100
+                    when browser.ie? && browser.version.to_i < 9 then 500
+                    else 2000
+                    end
   end
   
   def relation