]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/browse_controller.rb
Only show changesets that are actually closed in the index view.
[rails.git] / app / controllers / browse_controller.rb
index 60f580963cda9719326173b4479c7b70734a46c2..237c57ab232db987f1b385100f01acf91289263f 100644 (file)
@@ -8,7 +8,7 @@ class BrowseController < ApplicationController
   end
   
   def index
-    @nodes = Node.find(:all, :order => "timestamp DESC", :limit=> 20)  
+    @changesets = Changeset.find(:all, :order => "closed_at DESC", :conditions => ['closed_at < ?', DateTime.now], :limit=> 20)
   end
   
   def relation