]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/browse_controller.rb
Mass rename of "bugs" as "notes" for increased user friendliness
[rails.git] / app / controllers / browse_controller.rb
index f6bd89d4de9396ef74b398dd9074aa2b93a42e0c..2036e4f10a83f547244b22d18e00590c44afe042 100644 (file)
@@ -80,11 +80,11 @@ class BrowseController < ApplicationController
     render :action => "not_found", :status => :not_found
   end
 
-  def bug
-    @type = "bug"
-    @bug = MapBug.find(params[:id])
-    @next = MapBug.find(:first, :order => "id ASC", :conditions => [ "status != 'hidden' AND id > :id", { :id => @bug.id }] )
-    @prev = MapBug.find(:first, :order => "id DESC", :conditions => [ "status != 'hidden' AND id < :id", { :id => @bug.id }] )
+  def note
+    @type = "note"
+    @note = Note.find(params[:id])
+    @next = Note.find(:first, :order => "id ASC", :conditions => [ "status != 'hidden' AND id > :id", { :id => @note.id }] )
+    @prev = Note.find(:first, :order => "id DESC", :conditions => [ "status != 'hidden' AND id < :id", { :id => @note.id }] )
   rescue ActiveRecord::RecordNotFound
     render :action => "not_found", :status => :not_found
   end