]> git.openstreetmap.org Git - rails.git/commitdiff
adding link to download the full changeset xml
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Tue, 2 Dec 2008 18:44:50 +0000 (18:44 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Tue, 2 Dec 2008 18:44:50 +0000 (18:44 +0000)
app/controllers/changeset_controller.rb
app/views/browse/changeset.rhtml

index 58bcd1020f15598d21b73ac4c55c7a312a9798ec..ff956f2acaf51184970dac2f7fe5980c91c40abe 100644 (file)
@@ -31,6 +31,9 @@ class ChangesetController < ApplicationController
     end
   end
 
     end
   end
 
+  ##
+  # Return XML giving the basic info about the changeset. Does not 
+  # return anything about the nodes, ways and relations in the changeset.
   def read
     begin
       changeset = Changeset.find(params[:id])
   def read
     begin
       changeset = Changeset.find(params[:id])
index 9345eb0872cb2a5de1ae3f5ddc1c889bbaa47ab5..57e39db99d4ba8df1849f6e7c9e4cb97d1bbc882 100644 (file)
@@ -11,7 +11,8 @@
     <td>
     <%= render :partial => "changeset_details", :object => @changeset %>
     <hr />
     <td>
     <%= render :partial => "changeset_details", :object => @changeset %>
     <hr />
-      <%= link_to "Download XML", :controller => "changeset", :action => "read" %>
+      <%= link_to "Download Changeset XML", :controller => "changeset", :action => "read" %> | 
+      <%= link_to "Download osmChange XML", :controller => "changeset", :action => "download" %>
     </td>
   </tr>
 </table>
     </td>
   </tr>
 </table>