]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/notes_controller.rb
display an encouragement to contribute after many anonymous notes
[rails.git] / app / controllers / notes_controller.rb
index c40e776b444074efc192c9e4ae496924a05dc640..4b4f3d6515f3698370e74d2c92cc96b779b642ac 100644 (file)
@@ -45,6 +45,7 @@ class NotesController < ApplicationController
   end
 
   def new
+    @anonymous_notes_count = request.cookies["_osm_anonymous_notes_count"].to_i || 0
     render :action => :new_readonly if api_status != "online"
   end
 end