X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/734cbb967de8e04f15e01ee2103033064dd290d4..1ffb5c1502d870a1d1c46648ea0c165e25dfbef9:/app/controllers/browse_controller.rb diff --git a/app/controllers/browse_controller.rb b/app/controllers/browse_controller.rb index 408846c96..2c6c3dc5f 100644 --- a/app/controllers/browse_controller.rb +++ b/app/controllers/browse_controller.rb @@ -112,4 +112,17 @@ class BrowseController < ApplicationController render :action => "not_found", :status => :not_found end end + + def changeset + begin + @changeset = Changeset.find(params[:id]) + + @title = "Changeset | #{@changeset.id}" + @next = Changeset.find(:first, :order => "id ASC", :conditions => [ "id > :id", { :id => @changeset.id }] ) + @prev = Changeset.find(:first, :order => "id DESC", :conditions => [ "id < :id", { :id => @changeset.id }] ) + rescue ActiveRecord::RecordNotFound + @type = "changeset" + render :action => "not_found", :status => :not_found + end + end end