Add node version pages

This commit is contained in:
Anton Khorev 2024-01-14 02:05:36 +03:00
parent e71355c5bb
commit 85c284aaa6
11 changed files with 79 additions and 6 deletions

View file

@ -428,6 +428,9 @@ en:
introduction: "Click on the map to find nearby features."
nearby: "Nearby features"
enclosing: "Enclosing features"
old_nodes:
not_found:
sorry: "Sorry, node #%{id} version %{version} could not be found."
changesets:
changeset_paging_nav:
showing_page: "Page %{page}"

View file

@ -113,6 +113,7 @@ OpenStreetMap::Application.routes.draw do
get "/way/:id/history" => "browse#way_history", :id => /\d+/, :as => :way_history
get "/node/:id" => "browse#node", :id => /\d+/, :as => :node
get "/node/:id/history" => "browse#node_history", :id => /\d+/, :as => :node_history
resources :old_nodes, :path => "/node/:id/history", :id => /\d+/, :version => /\d+/, :param => :version, :only => :show
get "/relation/:id" => "browse#relation", :id => /\d+/, :as => :relation
get "/relation/:id/history" => "browse#relation_history", :id => /\d+/, :as => :relation_history
get "/changeset/:id" => "browse#changeset", :as => :changeset, :id => /\d+/